Kanzi Connect 3.9.10
kanzi::connect::ContentRow Struct Reference

Describes values for a single database row. More...

#include <content_data.hpp>

Public Member Functions

void addValue (bool value)
 Appends value at the end of the values container.
 
void addValue (boost::any value)
 Appends value at the end of the values container.
 
void addValue (float value)
 Appends value at the end of the values container.
 
void addValue (int value)
 Appends value at the end of the values container.
 
void addValue (string value)
 Appends value at the end of the values container.
 
 ContentRow ()
 Constructor.
 
size_t getCount () const
 Retrieves the number of values currently inserted in to this row.
 
boost::any getValue (size_t column) const
 Retrieves value at given column index.
 
bool getValueBool (size_t column) const
 Retrieves value at given column index.
 
float getValueFloat (size_t column) const
 Retrieves value at given column index.
 
int getValueInt (size_t column) const
 Retrieves value at given column index.
 
string getValueString (size_t column) const
 Retrieves value at given column index.
 
void resize (size_t size)
 Reserves memory for given amount of values.
 
void setValue (size_t column, bool value)
 Sets bool value.
 
void setValue (size_t column, boost::any value)
 Sets a value at given column index.
 
void setValue (size_t column, float value)
 Sets float value.
 
void setValue (size_t column, int value)
 Sets integer value.
 
void setValue (size_t column, string value)
 Sets string value.
 

Detailed Description

Describes values for a single database row.

Constructor & Destructor Documentation

◆ ContentRow()

kanzi::connect::ContentRow::ContentRow ( )
inline

Constructor.

Member Function Documentation

◆ addValue() [1/5]

void kanzi::connect::ContentRow::addValue ( bool value)
inline

Appends value at the end of the values container.

Allows to insert values sequentially.

Parameters
valuethe value to append.

◆ addValue() [2/5]

void kanzi::connect::ContentRow::addValue ( boost::any value)
inline

Appends value at the end of the values container.

Allows to insert values sequentially.

Parameters
valueValue to append.

◆ addValue() [3/5]

void kanzi::connect::ContentRow::addValue ( float value)
inline

Appends value at the end of the values container.

Allows to insert values sequentially.

Parameters
valuethe value to append.

◆ addValue() [4/5]

void kanzi::connect::ContentRow::addValue ( int value)
inline

Appends value at the end of the values container.

Allows to insert values sequentially.

Parameters
valuethe value to append.

◆ addValue() [5/5]

void kanzi::connect::ContentRow::addValue ( string value)
inline

Appends value at the end of the values container.

Allows to insert values sequentially.

Parameters
valuethe value to append.

◆ getCount()

size_t kanzi::connect::ContentRow::getCount ( ) const
inline

Retrieves the number of values currently inserted in to this row.

Returns
Amount of values.

◆ getValue()

boost::any kanzi::connect::ContentRow::getValue ( size_t column) const
inline

Retrieves value at given column index.

Parameters
columnIndex of the column.
Returns
Value at given column index.

◆ getValueBool()

bool kanzi::connect::ContentRow::getValueBool ( size_t column) const
inline

Retrieves value at given column index.

Parameters
columnIndex of the column.
Returns
the value

◆ getValueFloat()

float kanzi::connect::ContentRow::getValueFloat ( size_t column) const
inline

Retrieves value at given column index.

Parameters
columnIndex of the column.
Returns
the value

◆ getValueInt()

int kanzi::connect::ContentRow::getValueInt ( size_t column) const
inline

Retrieves value at given column index.

Parameters
columnIndex of the column.
Returns
the value

◆ getValueString()

string kanzi::connect::ContentRow::getValueString ( size_t column) const
inline

Retrieves value at given column index.

Parameters
columnIndex of the column.
Returns
the value

◆ resize()

void kanzi::connect::ContentRow::resize ( size_t size)
inline

Reserves memory for given amount of values.

Parameters
sizeNew size.

◆ setValue() [1/5]

void kanzi::connect::ContentRow::setValue ( size_t column,
bool value )
inline

Sets bool value.

Parameters
columnidentifies the column
valuethe value

◆ setValue() [2/5]

void kanzi::connect::ContentRow::setValue ( size_t column,
boost::any value )
inline

Sets a value at given column index.

Parameters
columnIndex of the column.
valueValue for the given column.

◆ setValue() [3/5]

void kanzi::connect::ContentRow::setValue ( size_t column,
float value )
inline

Sets float value.

Parameters
columnidentifies the column
valuethe value

◆ setValue() [4/5]

void kanzi::connect::ContentRow::setValue ( size_t column,
int value )
inline

Sets integer value.

Parameters
columnidentifies the column
valuethe value

◆ setValue() [5/5]

void kanzi::connect::ContentRow::setValue ( size_t column,
string value )
inline

Sets string value.

Parameters
columnidentifies the column
valuethe value

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