Specialized version for std::vector<char>, the ONLY datatype that provides binary conversion. More...
#include <db_field.h>
Public Member Functions | |
DBField (DBClass *owner, const DBField< std::vector< char > > *other) | |
DBField (Type type, DBClass *owner, std::string name, std::string table_name, bool write_permission) | |
virtual bool | fromBinary (const char *binary, size_t length) |
Sets the value of this field from a binary chunk of data. | |
virtual bool | toBinary (const char *&binary, size_t &length) const |
Gets a pointer to the value of this field as a binary chunk of data. |
Specialized version for std::vector<char>, the ONLY datatype that provides binary conversion.
Definition at line 393 of file db_field.h.
database_interface::DBField< std::vector< char > >::DBField | ( | Type | type, | |
DBClass * | owner, | |||
std::string | name, | |||
std::string | table_name, | |||
bool | write_permission | |||
) | [inline] |
Definition at line 396 of file db_field.h.
database_interface::DBField< std::vector< char > >::DBField | ( | DBClass * | owner, | |
const DBField< std::vector< char > > * | other | |||
) | [inline] |
Definition at line 399 of file db_field.h.
virtual bool database_interface::DBField< std::vector< char > >::fromBinary | ( | const char * | binary, | |
size_t | length | |||
) | [inline, virtual] |
Sets the value of this field from a binary chunk of data.
Reimplemented from database_interface::DBFieldData< std::vector< char > >.
Definition at line 404 of file db_field.h.
virtual bool database_interface::DBField< std::vector< char > >::toBinary | ( | const char *& | binary, | |
size_t & | length | |||
) | const [inline, virtual] |
Gets a pointer to the value of this field as a binary chunk of data.
Field MAINTAINS OWNERSHIP of the binary data; caller is not allowed to modify / delete it.
Reimplemented from database_interface::DBFieldData< std::vector< char > >.
Definition at line 411 of file db_field.h.