![]() |
ATLAS Offline Software
|
SqliteRecordset implements IRDBRecordset interface. More...
#include <SqliteRecordset.h>
Public Types | |
| typedef RecordsVector::const_iterator | const_iterator |
Public Member Functions | |
| SqliteRecordset () | |
| Construct empty recordset. | |
| void | getData (sqlite3 *db, const std::string &nodeName) |
| Constructs SQL query and retrieves data from the DB. | |
| unsigned int | size () const override |
| std::string | nodeName () const override |
| std::string | tagName () const override |
| const IRDBRecord * | operator[] (unsigned int index) const override |
| IRDBRecordset::const_iterator | begin () const override |
| IRDBRecordset::const_iterator | end () const override |
| 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 | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::string | m_nodeName {} |
| SqliteInpDef_ptr | m_def |
| RecordsVector | m_records |
| 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) | |
SqliteRecordset implements IRDBRecordset interface.
It is a container of records read from an SQLite table.
Definition at line 30 of file SqliteRecordset.h.
|
inherited |
Definition at line 52 of file IRDBRecordset.h.
| SqliteRecordset::SqliteRecordset | ( | ) |
Construct empty recordset.
Definition at line 19 of file SqliteRecordset.cxx.
|
overridevirtual |
Implements IRDBRecordset.
Definition at line 150 of file SqliteRecordset.cxx.
|
overridevirtual |
| void SqliteRecordset::getData | ( | sqlite3 * | db, |
| const std::string & | nodeName ) |
Constructs SQL query and retrieves data from the DB.
| taginfo | [IN] object holding information about the node tag |
Definition at line 25 of file SqliteRecordset.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
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 163 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 178 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.
|
overridevirtual |
|
overridevirtual |
| index | [IN] index of the record |
Implements IRDBRecordset.
Definition at line 146 of file SqliteRecordset.cxx.
|
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.
|
overridevirtual |
Implements IRDBRecordset.
Definition at line 136 of file SqliteRecordset.cxx.
|
inlineoverridevirtual |
Implements IRDBRecordset.
Definition at line 47 of file SqliteRecordset.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 61 of file SqliteRecordset.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.
|
private |
Definition at line 60 of file SqliteRecordset.h.
|
private |
Definition at line 62 of file SqliteRecordset.h.