ATLAS Offline Software
RootCollectionDataEditor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ROOTCOLLECTION_COLLECTIONDATAEDITOR_H
6 #define ROOTCOLLECTION_COLLECTIONDATAEDITOR_H
7 
8 #include <string>
9 
13 
14 #include "CoralBase/MessageStream.h"
15 
16 #include "TTree.h"
17 
18 namespace pool {
19 
20  // class coral::MessageStream;
21 
22  namespace RootCollection {
23 
30  {
31  public:
32 
34  TTree *tree,
35  coral::MessageStream &log );
36 
38 
39 
46  virtual void setRowCacheSize( int /* rowCacheSize = 0 */ ) {}
47 
53 
60 
65  virtual void clearRowBuffers();
66 
74  virtual void insertRow( const pool::CollectionRowBuffer& inputRowBuffer, bool updateRecordsCounter = false );
75 
86  virtual int updateRows( coral::AttributeList* attributeSetList = 0,
87  TokenList* tokenSetList = 0,
88  const std::string& whereClause = "",
89  coral::AttributeList* attributeBindData = 0,
90  pool::TokenList* tokenBindData = 0 );
91 
103  virtual int deleteRows( const std::string& whereClause,
104  coral::AttributeList* attributeBindData = 0,
105  pool::TokenList* tokenBindData = 0,
106  bool updateRecordsCounter = true );
107 
108 
109  protected:
110 
111 
114 
117 
118  TTree *m_tree;
119 
120  coral::MessageStream *m_poolOut;
121  };
122  }
123 }
124 
125 #endif
126 
127 
128 
129 
130 
131 
132 
pool::RootCollection::RootCollectionDataEditor::m_collectionRowBuffer
CollectionRowBuffer m_collectionRowBuffer
Collection row buffer containing all Tokens and Attributes defined by collection.
Definition: RootCollectionDataEditor.h:116
tree
TChain * tree
Definition: tile_monitor.h:30
pool
pool namespace
Definition: libname.h:15
pool::RootCollection::RootCollectionDataEditor::deleteRows
virtual int deleteRows(const std::string &whereClause, coral::AttributeList *attributeBindData=0, pool::TokenList *tokenBindData=0, bool updateRecordsCounter=true)
Deletes the rows of the collection that satisfy a query.
pool::RootCollection::RootCollectionDataEditor::updateRows
virtual int updateRows(coral::AttributeList *attributeSetList=0, TokenList *tokenSetList=0, const std::string &whereClause="", coral::AttributeList *attributeBindData=0, pool::TokenList *tokenBindData=0)
Updates the rows of the collection that satisfy a query.
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
pool::RootCollection::RootCollectionDataEditor::insertRow
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer, bool updateRecordsCounter=false)
Adds a new row of data to the collection.
pool::RootCollection::RootCollectionDataEditor::~RootCollectionDataEditor
virtual ~RootCollectionDataEditor()
Definition: RootCollectionDataEditor.h:37
pool::RootCollection::RootCollectionDataEditor::m_description
const ICollectionDescription & m_description
Specification of collection properties.
Definition: RootCollectionDataEditor.h:113
pool::TokenList
Definition: TokenList.h:24
pool::RootCollection::RootCollectionDataEditor
Definition: RootCollectionDataEditor.h:30
CollectionRowBuffer.h
pool::RootCollection::RootCollectionDataEditor::m_tree
TTree * m_tree
Definition: RootCollectionDataEditor.h:118
pool::RootCollection::RootCollectionDataEditor::emptyRowBuffer
virtual CollectionRowBuffer & emptyRowBuffer()
Returns a reference to an empty collection row buffer for adding rows of data to the collection.
pool::RootCollection::RootCollectionDataEditor::RootCollectionDataEditor
RootCollectionDataEditor(const pool::ICollectionDescription &description, TTree *tree, coral::MessageStream &log)
ICollectionDataEditor.h
pool::RootCollection::RootCollectionDataEditor::rowBuffer
virtual CollectionRowBuffer & rowBuffer()
Returns a reference to a collection row buffer for adding rows of data to the collection.
pool::RootCollection::RootCollectionDataEditor::m_poolOut
coral::MessageStream * m_poolOut
Definition: RootCollectionDataEditor.h:120
pool::CollectionRowBuffer
Definition: CollectionRowBuffer.h:31
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
pool::RootCollection::RootCollectionDataEditor::clearRowBuffers
virtual void clearRowBuffers()
Clears all row buffers.
ICollectionDescription.h
pool::RootCollection::RootCollectionDataEditor::setRowCacheSize
virtual void setRowCacheSize(int)
Sets the number of rows to cache before insertion into the collection.
Definition: RootCollectionDataEditor.h:46
pool::ICollectionDescription
Definition: ICollectionDescription.h:26
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88
pool::ICollectionDataEditor
Definition: ICollectionDataEditor.h:26