ATLAS Offline Software
Public Member Functions | List of all members
IRDBRecord Class Referenceabstract

IRDBRecord is one record in the IRDBRecordset object. More...

#include <IRDBRecord.h>

Inheritance diagram for IRDBRecord:
Collaboration diagram for IRDBRecord:

Public Member Functions

virtual ~IRDBRecord ()=default
 
virtual bool isFieldNull (const std::string &fieldName) const =0
 Check if the field value is NULL. More...
 
virtual int getInt (const std::string &fieldName) const =0
 Get int field value. More...
 
virtual long getLong (const std::string &fieldName) const =0
 Get long field value. More...
 
virtual double getDouble (const std::string &fieldName) const =0
 Get double field value. More...
 
virtual float getFloat (const std::string &fieldName) const =0
 Get float field value. More...
 
virtual const std::string & getString (const std::string &fieldName) const =0
 Get string field value. More...
 
virtual int getInt (const std::string &fieldName, unsigned int index) const =0
 Get array int field value. More...
 
virtual long getLong (const std::string &fieldName, unsigned int index) const =0
 Get array long field value. More...
 
virtual double getDouble (const std::string &fieldName, unsigned int index) const =0
 Get array double field value. More...
 
virtual float getFloat (const std::string &fieldName, unsigned int index) const =0
 Get array float field value. More...
 
virtual const std::string & getString (const std::string &fieldName, unsigned int index) const =0
 Get array string field value. More...
 

Detailed Description

IRDBRecord is one record in the IRDBRecordset object.

Definition at line 26 of file IRDBRecord.h.

Constructor & Destructor Documentation

◆ ~IRDBRecord()

virtual IRDBRecord::~IRDBRecord ( )
virtualdefault

Member Function Documentation

◆ getDouble() [1/2]

virtual double IRDBRecord::getDouble ( const std::string &  fieldName) const
pure virtual

Get double field value.

Parameters
fieldName[IN] field name
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getDouble() [2/2]

virtual double IRDBRecord::getDouble ( const std::string &  fieldName,
unsigned int  index 
) const
pure virtual

Get array double field value.

Parameters
fieldName[IN] field name
index[IN] index in the array
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getFloat() [1/2]

virtual float IRDBRecord::getFloat ( const std::string &  fieldName) const
pure virtual

Get float field value.

Parameters
fieldName[IN] field name
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getFloat() [2/2]

virtual float IRDBRecord::getFloat ( const std::string &  fieldName,
unsigned int  index 
) const
pure virtual

Get array float field value.

Parameters
fieldName[IN] field name
index[IN] index in the array
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getInt() [1/2]

virtual int IRDBRecord::getInt ( const std::string &  fieldName) const
pure virtual

Get int field value.

Parameters
fieldName[IN] field name
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getInt() [2/2]

virtual int IRDBRecord::getInt ( const std::string &  fieldName,
unsigned int  index 
) const
pure virtual

Get array int field value.

Parameters
fieldName[IN] field name
index[IN] index in the array
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getLong() [1/2]

virtual long IRDBRecord::getLong ( const std::string &  fieldName) const
pure virtual

Get long field value.

Parameters
fieldName[IN] field name
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getLong() [2/2]

virtual long IRDBRecord::getLong ( const std::string &  fieldName,
unsigned int  index 
) const
pure virtual

Get array long field value.

Parameters
fieldName[IN] field name
index[IN] index in the array
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getString() [1/2]

virtual const std::string& IRDBRecord::getString ( const std::string &  fieldName) const
pure virtual

Get string field value.

Parameters
fieldName[IN] field name
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ getString() [2/2]

virtual const std::string& IRDBRecord::getString ( const std::string &  fieldName,
unsigned int  index 
) const
pure virtual

Get array string field value.

Parameters
fieldName[IN] field name
index[IN] index in the array
Returns
field value

Implemented in RDBRecord, and SqliteRecord.

◆ isFieldNull()

virtual bool IRDBRecord::isFieldNull ( const std::string &  fieldName) const
pure virtual

Check if the field value is NULL.

Parameters
fieldName[IN] field name
Returns
TRUE if the field is NULL, FALSE otherwise

Implemented in RDBRecord, and SqliteRecord.


The documentation for this class was generated from the following file: