The C++ version of an object stored in a database. More...
#include <database_test_object.h>
Public Member Functions | |
DatabaseTestObject () | |
Constructs the fields, then calls initFields() followed by initPermissions() | |
DatabaseTestObject (const DatabaseTestObject *other) | |
Copy-constructs the fields based on the copied instance fields, then calls initFields() | |
void | initFields () |
Places all the fields in the fields_ vector and sets foreign keys and sequences. | |
void | initPermissions () |
Initializes permissions for the fields. | |
Public Attributes | |
DBField< std::vector< char > > | binary_field_ |
DBField< double > | double_field_ |
DBField< int > | foreign_field_ |
DBField< int > | pk_field_ |
DBField< std::string > | string_field_ |
DBField< std::vector < std::string > > | tags_field_ |
The C++ version of an object stored in a database.
Note that:
Definition at line 48 of file database_test_object.h.
Constructs the fields, then calls initFields() followed by initPermissions()
Note that:
Definition at line 110 of file database_test_object.h.
database_interface::DatabaseTestObject::DatabaseTestObject | ( | const DatabaseTestObject * | other | ) | [inline] |
Copy-constructs the fields based on the copied instance fields, then calls initFields()
The data itself in the fields, as well as the permissions, gets copied in the field copy construction.
Definition at line 127 of file database_test_object.h.
void database_interface::DatabaseTestObject::initFields | ( | ) | [inline] |
Places all the fields in the fields_ vector and sets foreign keys and sequences.
Note that:
Definition at line 70 of file database_test_object.h.
void database_interface::DatabaseTestObject::initPermissions | ( | ) | [inline] |
Initializes permissions for the fields.
Note that:
Definition at line 94 of file database_test_object.h.
DBField< std::vector<char> > database_interface::DatabaseTestObject::binary_field_ |
Definition at line 58 of file database_test_object.h.
Definition at line 54 of file database_test_object.h.
Definition at line 60 of file database_test_object.h.
Definition at line 52 of file database_test_object.h.
Definition at line 55 of file database_test_object.h.
DBField< std::vector<std::string> > database_interface::DatabaseTestObject::tags_field_ |
Definition at line 56 of file database_test_object.h.