31 #ifndef DATABASETYPES_H 32 #define DATABASETYPES_H 92 DataColumn() { binaryValue.reset(
new std::vector<char>()); }
150 dataType = DataType::Enum::BLOB;
151 binaryValue.reset(
new std::vector<char>());
152 binaryValue->insert(binaryValue->begin(), value.begin(), value.end());
162 dataType = DataType::Enum::BLOB;
163 binaryValue.reset(
new std::vector<char>());
164 binaryValue->insert(binaryValue->begin(), value.begin(), value.end());
176 typedef std::map<uint32_t, std::map<uint32_t, std::shared_ptr<DataColumn>>>
DataTable;
181 typedef std::deque<std::shared_ptr<DataColumn>>
DataRow;
std::map< uint32_t, std::map< uint32_t, std::shared_ptr< DataColumn > > > DataTable
Type definition to easily create a DataTable.
Definition: DatabaseTypes.h:176
DataColumn()
Default constructor.
Definition: DatabaseTypes.h:92
Enumeration of the data types which can be stored in this class.
Definition: DatabaseTypes.h:54
std::shared_ptr< std::vector< char > > binaryValue
The binary value.
Definition: DatabaseTypes.h:87
Definition: BaseLib.cpp:34
DataColumn(std::string value)
Constructor to create a data column of type TEXT.
Definition: DatabaseTypes.h:127
DataType::Enum dataType
The data type of the column.
Definition: DatabaseTypes.h:62
DataColumn(int64_t value)
Constructor to create a data column of type INTEGER.
Definition: DatabaseTypes.h:99
DataColumn(uint32_t value)
Constructor to create a data column of type INTEGER.
Definition: DatabaseTypes.h:120
DataColumn(const std::vector< uint8_t > &value)
Constructor to create a data column of type BLOB.
Definition: DatabaseTypes.h:160
int64_t intValue
The integer value.
Definition: DatabaseTypes.h:72
PVariable value
Definition: UiElements.h:217
DataColumn(double value)
Constructor to create a data column of type FLOAT.
Definition: DatabaseTypes.h:134
std::string textValue
The text value.
Definition: DatabaseTypes.h:82
DataColumn(std::shared_ptr< std::vector< char >> value)
Constructor to create a data column of type BLOB.
Definition: DatabaseTypes.h:141
Enum
Definition: DatabaseTypes.h:56
Definition: DatabaseTypes.h:56
DataColumn(int32_t value)
Constructor to create a data column of type INTEGER.
Definition: DatabaseTypes.h:113
DataColumn(uint64_t value)
Constructor to create a data column of type INTEGER.
Definition: DatabaseTypes.h:106
Class to store data of a database column in.
Definition: DatabaseTypes.h:48
virtual ~DataColumn()
Destructor.
Definition: DatabaseTypes.h:170
Definition: DatabaseTypes.h:56
Definition: DatabaseTypes.h:56
double floatValue
The float value.
Definition: DatabaseTypes.h:77
Definition: DatabaseTypes.h:56
int32_t index
The column index.
Definition: DatabaseTypes.h:67
DataColumn(const std::vector< char > &value)
Constructor to create a data column of type BLOB.
Definition: DatabaseTypes.h:148
Definition: DatabaseTypes.h:56
std::deque< std::shared_ptr< DataColumn > > DataRow
Type definition to easily create a DataRow.
Definition: DatabaseTypes.h:181