![]() |
ATLAS Offline Software
|
Collection implementation. More...
#include <RootCollection.h>
Public Types | |
| enum | OpenMode { CREATE_AND_OVERWRITE , READ } |
| Enumeration of the possible open modes of the collection. More... | |
Public Member Functions | |
| RootCollection (const pool::CollectionDescription *description, pool::ICollection::OpenMode mode) | |
| Constructor. | |
| ~RootCollection () | |
| Destructor. | |
| virtual void | open () final override |
| Explicitly re-opens the collection after it has been closed. | |
| virtual void | insertRow (const pool::CollectionRowBuffer &inputRowBuffer) final override |
| Adds a new row of data to the collection. | |
| virtual void | commit (bool restartTransaction=false) final override |
| Commits the last changes made to the collection. | |
| virtual void | close () final override |
| Explicitly closes the collection. | |
| virtual const CollectionDescription & | description () const final override |
| Returns an object used to describe the collection properties. | |
| virtual std::unique_ptr< ICollectionCursor > | cursor () final override |
| Returns a cursor for the collection. | |
| virtual void | initNewRow (pool::CollectionRowBuffer &row) const |
| Initialize a new RowBuffer by adding all Attributes adn Tokens of this collection to it. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Private Member Functions | |
| RootCollection (const RootCollection &)=delete | |
| copying unimplemented in this class. | |
| RootCollection & | operator= (const RootCollection &)=delete |
| void | writeColumn (const std::string &columnName, const void *data, const std::type_info &typeInfo) |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| CollectionDescription | m_description |
| std::string | m_name |
| std::string | m_fileName |
| std::string | m_containerPrefix |
| The common prefix for branch container names for attributes. | |
| ICollection::OpenMode | m_mode |
| bool | m_open |
| std::unique_ptr< IStorageSvc > | m_storageSvc |
| pool::FileDescriptor | m_fileDescr |
| ContainerMap | m_containerMap |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels). | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging). | |
Collection implementation.
Definition at line 37 of file RootCollection.h.
|
inherited |
Enumeration of the possible open modes of the collection.
| Enumerator | |
|---|---|
| CREATE_AND_OVERWRITE | |
| READ | |
Definition at line 27 of file ICollection.h.
| pool::RootCollection::RootCollection | ( | const pool::CollectionDescription * | description, |
| pool::ICollection::OpenMode | mode ) |
Constructor.
| description | The description of the collection, including name and connection |
| mode | The open mode of the collection |
| session | If you want to access the referenced objects you have to provide an ISession |
| pool::RootCollection::~RootCollection | ( | ) |
Destructor.
|
privatedelete |
copying unimplemented in this class.
|
finaloverridevirtual |
Explicitly closes the collection.
Implements pool::ICollection.
|
finaloverridevirtual |
Commits the last changes made to the collection.
Implements pool::ICollection.
|
finaloverridevirtual |
Returns a cursor for the collection.
Implements pool::ICollection.
|
finaloverridevirtual |
Returns an object used to describe the collection properties.
Implements pool::ICollection.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
virtualinherited |
Initialize a new RowBuffer by adding all Attributes adn Tokens of this collection to it.
|
finaloverridevirtual |
Adds a new row of data to the collection.
Implements pool::ICollection.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 167 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 182 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
finaloverridevirtual |
Explicitly re-opens the collection after it has been closed.
Implements pool::ICollection.
|
privatedelete |
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
private |
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 90 of file RootCollection.h.
|
private |
The common prefix for branch container names for attributes.
Definition at line 83 of file RootCollection.h.
|
private |
Definition at line 78 of file RootCollection.h.
|
private |
Definition at line 89 of file RootCollection.h.
|
private |
Definition at line 81 of file RootCollection.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
private |
Definition at line 84 of file RootCollection.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels).
Definition at line 132 of file AthMessaging.h.
|
private |
Definition at line 80 of file RootCollection.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 86 of file RootCollection.h.
|
private |
Definition at line 88 of file RootCollection.h.