Describes values for a single database row.
More...
#include <content_data.hpp>
|
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.
|
|
Describes values for a single database row.
◆ ContentRow()
kanzi::connect::ContentRow::ContentRow |
( |
| ) |
|
|
inline |
◆ 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
-
value | the 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
-
◆ 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
-
value | the 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
-
value | the 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
-
value | the 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
-
column | Index 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
-
column | Index of the column. |
- Returns
- the value
◆ getValueFloat()
float kanzi::connect::ContentRow::getValueFloat |
( |
size_t | column | ) |
const |
|
inline |
Retrieves value at given column index.
- Parameters
-
column | Index of the column. |
- Returns
- the value
◆ getValueInt()
int kanzi::connect::ContentRow::getValueInt |
( |
size_t | column | ) |
const |
|
inline |
Retrieves value at given column index.
- Parameters
-
column | Index of the column. |
- Returns
- the value
◆ getValueString()
string kanzi::connect::ContentRow::getValueString |
( |
size_t | column | ) |
const |
|
inline |
Retrieves value at given column index.
- Parameters
-
column | Index of the column. |
- Returns
- the value
◆ resize()
void kanzi::connect::ContentRow::resize |
( |
size_t | size | ) |
|
|
inline |
Reserves memory for given amount of values.
- Parameters
-
◆ setValue() [1/5]
void kanzi::connect::ContentRow::setValue |
( |
size_t | column, |
|
|
bool | value ) |
|
inline |
Sets bool value.
- Parameters
-
column | identifies the column |
value | the value |
◆ setValue() [2/5]
void kanzi::connect::ContentRow::setValue |
( |
size_t | column, |
|
|
boost::any | value ) |
|
inline |
Sets a value at given column index.
- Parameters
-
column | Index of the column. |
value | Value for the given column. |
◆ setValue() [3/5]
void kanzi::connect::ContentRow::setValue |
( |
size_t | column, |
|
|
float | value ) |
|
inline |
Sets float value.
- Parameters
-
column | identifies the column |
value | the value |
◆ setValue() [4/5]
void kanzi::connect::ContentRow::setValue |
( |
size_t | column, |
|
|
int | value ) |
|
inline |
Sets integer value.
- Parameters
-
column | identifies the column |
value | the value |
◆ setValue() [5/5]
void kanzi::connect::ContentRow::setValue |
( |
size_t | column, |
|
|
string | value ) |
|
inline |
Sets string value.
- Parameters
-
column | identifies the column |
value | the value |
The documentation for this struct was generated from the following file:
- connect/content/content_data.hpp