Public Member Functions | |
| Record () | |
| Record (const std::string &data, const std::vector< std::string > &names, const std::vector< CrateDataType > &types) | |
| int | size () const |
| Value | value (int pos) const |
| Value | value (const std::string &name) const |
The class Record encapsulates the values of a single row inside a Result.
To iterate over all values contained in a result use
| CppCrate::Record::Record | ( | ) |
Constructs an empty record.
| CppCrate::Record::Record | ( | const std::string & | data, |
| const std::vector< std::string > & | names, | ||
| const std::vector< CrateDataType > & | types | ||
| ) |
Constructs a record holding the values as defined in data. The values' names are defined by names and their types by types.
| int CppCrate::Record::size | ( | ) | const |
Returns the size of the values contained in the record.
| Value CppCrate::Record::value | ( | int | pos | ) | const |
Returns the value at position pos or an empty value if pos is invalid.