$search

household_objects_database::DatabaseOriginalModel Class Reference

The C++ version of an original model entry in the database. More...

#include <database_original_model.h>

Inheritance diagram for household_objects_database::DatabaseOriginalModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DatabaseOriginalModel (const DatabaseOriginalModel *other)
 Copy-constructs the fields based on the copied instance fields, then calls initFields().
 DatabaseOriginalModel ()
 Constructs the fields, then calls initFields() followed by initPermissions().
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

database_interface::DBField
< std::string > 
acquisition_method_
database_interface::DBField
< std::string > 
barcode_
database_interface::DBField< bool > concave_filled_
database_interface::DBField
< std::string > 
description_
database_interface::DBField< int > id_
database_interface::DBField
< std::string > 
maker_
database_interface::DBField
< std::string > 
model_
database_interface::DBField
< std::string > 
recognition_id_
database_interface::DBField
< std::string > 
source_
database_interface::DBField
< std::vector< std::string > > 
tags_

Detailed Description

The C++ version of an original model entry in the database.

Note that:

Definition at line 48 of file database_original_model.h.


Constructor & Destructor Documentation

household_objects_database::DatabaseOriginalModel::DatabaseOriginalModel (  )  [inline]

Constructs the fields, then calls initFields() followed by initPermissions().

Note that:

  • all fields are intialized with the type, owner (this), column name and table name

Definition at line 122 of file database_original_model.h.

household_objects_database::DatabaseOriginalModel::DatabaseOriginalModel ( const DatabaseOriginalModel 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 144 of file database_original_model.h.


Member Function Documentation

void household_objects_database::DatabaseOriginalModel::initFields (  )  [inline]

Places all the fields in the fields_ vector and sets foreign keys and sequences.

Note that:

  • the address of the id_ field is noted as primary key
  • the addresses of all the other fields are stored in fields_
  • all the needed foreign keys are inserted for referencing fields that live in different table than out primary key
  • the sequence name used by our primary key field is noted

Definition at line 74 of file database_original_model.h.

void household_objects_database::DatabaseOriginalModel::initPermissions (  )  [inline]

Initializes permissions for the fields.

Note that:

  • default behavior is set for which fields are to be read from / written to the database. That this can always be changed later for any particular instance of this class, if you want to save or load any particular fields.

Definition at line 99 of file database_original_model.h.


Member Data Documentation

Definition at line 62 of file database_original_model.h.

Definition at line 61 of file database_original_model.h.

Definition at line 64 of file database_original_model.h.

Definition at line 60 of file database_original_model.h.

Definition at line 54 of file database_original_model.h.

Definition at line 57 of file database_original_model.h.

Definition at line 56 of file database_original_model.h.

Definition at line 63 of file database_original_model.h.

Definition at line 59 of file database_original_model.h.

Definition at line 58 of file database_original_model.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


household_objects_database
Author(s): Matei Ciocarlie, except for source files individually marked otherwise
autogenerated on Fri Mar 1 19:52:46 2013