![]() |
ATLAS Offline Software
|
An implicit collection implementation of the ICollection interface. More...
#include <ImplicitCollection.h>
Public Types | |
| enum | OpenMode { CREATE_AND_OVERWRITE , READ } |
| Enumeration of the possible open modes of the collection. More... | |
Public Member Functions | |
| ImplicitCollection (const CollectionDescription *description, ICollection::OpenMode mode, ISession *session) | |
| Constructor compying to the new Collections API parameters as above, but name and connection passed in description. | |
| ~ImplicitCollection () | |
| Destructor. | |
| ImplicitCollection (const ImplicitCollection &)=delete | |
| ImplicitCollection & | operator= (const ImplicitCollection &)=delete |
| virtual void | insertRow (const pool::CollectionRowBuffer &inputRowBuffer) override final |
| Adds a new row of data to the collection. Will always throw exception. | |
| virtual void | commit (bool=false) override final |
| Base interface methods that do nothing. Open/Close happens in xtor and dtor, and commit is a no-op. | |
| virtual void | close () override final |
| Closes the collection and terminates any database connections. | |
| virtual void | open () override final |
| Opens the collection and initializes it if necessary. | |
| virtual const CollectionDescription & | description () const override final |
| Returns an object used to describe the collection properties. | |
| virtual std::unique_ptr< ICollectionCursor > | cursor () override final |
| 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. | |
Protected Member Functions | |
| void | open (ICollection::OpenMode mode, ISession *session) |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| IContainer * | m_container |
| The underlying container handle. | |
| CollectionDescription | m_description |
| 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). | |
An implicit collection implementation of the ICollection interface.
Definition at line 26 of file ImplicitCollection.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::ImplicitCollection::ImplicitCollection | ( | const CollectionDescription * | description, |
| ICollection::OpenMode | mode, | ||
| ISession * | session ) |
Constructor compying to the new Collections API parameters as above, but name and connection passed in description.
| pool::ImplicitCollection::~ImplicitCollection | ( | ) |
Destructor.
|
delete |
|
inlinefinaloverridevirtual |
Closes the collection and terminates any database connections.
Implements pool::ICollection.
Definition at line 47 of file ImplicitCollection.h.
|
inlinefinaloverridevirtual |
Base interface methods that do nothing. Open/Close happens in xtor and dtor, and commit is a no-op.
Implements pool::ICollection.
Definition at line 46 of file ImplicitCollection.h.
|
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. Will always throw exception.
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.
|
inlinefinaloverridevirtual |
Opens the collection and initializes it if necessary.
Implements pool::ICollection.
Definition at line 48 of file ImplicitCollection.h.
|
protected |
|
delete |
|
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.
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
|
private |
The underlying container handle.
Definition at line 61 of file ImplicitCollection.h.
|
private |
Definition at line 63 of file ImplicitCollection.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels).
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.