|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef RDBACCESSSVC_SQLITERECORD_H
13 #define RDBACCESSSVC_SQLITERECORD_H
33 typedef std::variant<
int
67 int getInt(
const std::string&
field)
const override;
87 virtual const std::string&
getString(
const std::string&
field)
const override;
120 virtual const std::string&
getString(
const std::string&
field,
unsigned int index)
const override;
129 typedef std::map<std::string,SqliteInp>
Record;
165 return std::make_tuple(checkIt,checkCode);
173 throw std::runtime_error(
"Wrong name for the field " +
field);
175 throw std::runtime_error(
"Wrong data type requested for the field " +
field);
177 throw std::runtime_error(
field +
" is NULL");
std::variant< int, long, float, double, std::string > SqliteInp
~SqliteRecord() override
Destructor.
std::tuple< RecordCIterator, FieldCheckCode > FieldCheckResult
std::map< std::string, SqliteInpType > SqliteInpDef
float getFloat(const std::string &field) const override
Get float field value.
int getInt(const std::string &field) const override
Get int field value.
void addValue(const std::string &field, SqliteInp value)
SqliteRecord(const SqliteRecord &)=delete
SqliteRecord is one record in the SqliteRecordset object.
std::map< std::string, SqliteInp > Record
void handleError(const std::string &field, FieldCheckCode checkCode) const
void dump() const
Dump to cout.
long getLong(const std::string &field) const override
Get long field value.
Definition of the abstract IRDBRecord interface.
IRDBRecord is one record in the IRDBRecordset object.
FieldCheckResult checkField(const std::string &field, SqliteInpType fieldType) const
SqliteRecord & operator=(const SqliteRecord &)=delete
virtual const std::string & getString(const std::string &field) const override
Get string field value.
bool isFieldNull(const std::string &field) const override
Check if the field value is NULL.
std::shared_ptr< SqliteInpDef > SqliteInpDef_ptr
double getDouble(const std::string &field) const override
Get double field value.
Record::const_iterator RecordCIterator