SqliteRecordset implements IRDBRecordset interface. It is a container of records read from an SQLite table.
More...
#include <SqliteRecordset.h>
SqliteRecordset implements IRDBRecordset interface. It is a container of records read from an SQLite table.
Definition at line 30 of file SqliteRecordset.h.
◆ const_iterator
◆ SqliteRecordset()
SqliteRecordset::SqliteRecordset |
( |
| ) |
|
◆ begin()
◆ end()
◆ getData()
void SqliteRecordset::getData |
( |
sqlite3 * |
db, |
|
|
const std::string & |
nodeName |
|
) |
| |
Constructs SQL query and retrieves data from the DB.
- Parameters
-
taginfo | [IN] object holding information about the node tag |
Definition at line 25 of file SqliteRecordset.cxx.
30 std::ostringstream
sql;
34 sqlite3_stmt* stTable{
nullptr};
35 int rc = sqlite3_prepare_v2(
db,
sql.str().c_str(), -1, &stTable, NULL);
42 sqlite3_stmt* st{
nullptr};
43 rc = sqlite3_prepare_v2(
db,
sql.str().c_str(), -1, &st, NULL);
49 int ctotal = sqlite3_column_count(st);
54 rc = sqlite3_step(st);
56 if(rc == SQLITE_ROW) {
61 for(
int i=0;
i<ctotal; ++
i) {
69 std::string columnName = sqlite3_column_name(st,
i);
70 bool extendDef = (
m_def->find(columnName)==
m_def->end());
72 auto columnType = sqlite3_column_type(st,
i);
79 val = sqlite3_column_int(st,
i);
83 val = sqlite3_column_double(st,
i);
87 val = std::string((
char*)(sqlite3_column_text(st,
i)));
91 val = std::string((
char*)(sqlite3_column_blob(st,
i)));
106 (*m_def)[columnName] = inpType;
112 else if(rc == SQLITE_DONE) {
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
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 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
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 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ nodeName()
std::string SqliteRecordset::nodeName |
( |
| ) |
const |
|
overridevirtual |
◆ operator[]()
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ size()
unsigned int SqliteRecordset::size |
( |
| ) |
const |
|
overridevirtual |
◆ tagName()
std::string SqliteRecordset::tagName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_def
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_nodeName
std::string SqliteRecordset::m_nodeName {} |
|
private |
◆ m_records
The documentation for this class was generated from the following files: