Fledge
An open source edge computing platform for industrial users
ResultSet::ColumnValue Class Reference

Public Member Functions

 ColumnValue (const std::string &value)
 
 ColumnValue (const int value)
 
 ColumnValue (const long value)
 
 ColumnValue (const double value)
 
 ColumnValue (const rapidjson::Value &value)
 
ColumnType getType ()
 
long getInteger () const
 Retrieve a column value as an integer. More...
 
double getNumber () const
 Retrieve a column value as a floating point number. More...
 
char * getString () const
 Retrieve a column value as a string. More...
 
const rapidjson::Value * getJSON () const
 

Member Function Documentation

◆ getInteger()

long ResultSet::ColumnValue::getInteger ( ) const

Retrieve a column value as an integer.

Returns
long Integer value
Exceptions
ResultIncorrectTypeExceptionThe column can not be returned as an integer

◆ getNumber()

double ResultSet::ColumnValue::getNumber ( ) const

Retrieve a column value as a floating point number.

Returns
double Floating point value
Exceptions
ResultIncorrectTypeExceptionThe column can not be returned as a double

◆ getString()

char * ResultSet::ColumnValue::getString ( ) const

Retrieve a column value as a string.

Returns
double Floating point value
Exceptions
ResultIncorrectTypeExceptionThe column can not be returned as a double

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