ContentData

class kanzi::connect::ContentData

Describes resulting data of content query. Contains columns and rows that were retrieved from the database.

Public Functions

ContentColumn *addColumn()

Appends a column in to this content data.

Return

Data for new column.

ContentRow *addRow()

Appends a row in to this content data.

Return

Container for values in new row.

string asJson()
ContentColumn *getColumn(size_t index)

Retrieves given column from this content data.

Return

Column data.

Parameters
  • index: Index of the column.

size_t getColumnCount() const

Retrieves number of columns in this content data.

Return

Number of columns.

ContentRow *getRow(size_t index)

Retrieves given row from this content data.

Return

Row data.

Parameters
  • index: Index of the row.

size_t getRowCount() const

Retrieves number of rows in this content data.

Return

Number of rows.

size_t getStartIndex() const

retrieve the start index

Return

start index

void setStartIndex(size_t startIndex)

Set the start index.

Parameters
  • startIndex: the index.