Public Member Functions
database_interface::DBField< std::vector< char > > Class Template Reference

Specialized version for std::vector<char>, the ONLY datatype that provides binary conversion. More...

#include <db_field.h>

Inheritance diagram for database_interface::DBField< std::vector< char > >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DBField (Type type, DBClass *owner, std::string name, std::string table_name, bool write_permission)
 DBField (DBClass *owner, const DBField< std::vector< char > > *other)
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.

Detailed Description

template<>
class database_interface::DBField< std::vector< char > >

Specialized version for std::vector<char>, the ONLY datatype that provides binary conversion.

Definition at line 393 of file db_field.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:


sql_database
Author(s): Matei Ciocarlie and Lorenz Mosenlechner
autogenerated on Fri Aug 28 2015 13:11:16