Describes values for a single database row.
More...
#include <content_data.hpp>
|
| void | addValue (boost::any value) |
| | Appends value at the end of the values container. More...
|
| |
| void | addValue (int value) |
| | Appends value at the end of the values container. More...
|
| |
| void | addValue (float value) |
| | Appends value at the end of the values container. More...
|
| |
| void | addValue (bool value) |
| | Appends value at the end of the values container. More...
|
| |
| void | addValue (string value) |
| | Appends value at the end of the values container. More...
|
| |
| | ContentRow () |
| | Constructor. More...
|
| |
| size_t | getCount () const |
| | Retrieves the number of values currently inserted in to this row. More...
|
| |
| boost::any | getValue (size_t column) const |
| | Retrieves value at given column index. More...
|
| |
| bool | getValueBool (size_t column) const |
| | Retrieves value at given column index. More...
|
| |
| float | getValueFloat (size_t column) const |
| | Retrieves value at given column index. More...
|
| |
| int | getValueInt (size_t column) const |
| | Retrieves value at given column index. More...
|
| |
| string | getValueString (size_t column) const |
| | Retrieves value at given column index. More...
|
| |
| void | resize (size_t size) |
| | Reserves memory for given amount of values. More...
|
| |
| void | setValue (size_t column, boost::any value) |
| | Sets a value at given column index. More...
|
| |
| void | setValue (size_t column, int value) |
| | Sets integer value. More...
|
| |
| void | setValue (size_t column, float value) |
| | Sets float value. More...
|
| |
| void | setValue (size_t column, bool value) |
| | Sets bool value. More...
|
| |
| void | setValue (size_t column, string value) |
| | Sets string value. More...
|
| |
Describes values for a single database row.
◆ ContentRow()
| kanzi::connect::ContentRow::ContentRow |
( |
| ) |
|
|
inline |
◆ addValue() [1/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() [2/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() [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 |
( |
bool |
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, |
|
|
boost::any |
value |
|
) |
| |
|
inline |
Sets a value at given column index.
- Parameters
-
| column | Index of the column. |
| value | Value for the given column. |
◆ setValue() [2/5]
| void kanzi::connect::ContentRow::setValue |
( |
size_t |
column, |
|
|
int |
value |
|
) |
| |
|
inline |
Sets integer value.
- Parameters
-
| column | identifies the column |
| value | the value |
◆ 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, |
|
|
bool |
value |
|
) |
| |
|
inline |
Sets bool 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