GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
GoDBTrackFamilyRow Class Reference

manages a map with keys matching fields of the gofiguredatabase TrackFamily table and values of the map matching a row of the TrackFamily table More...

#include <Code/IO/GoDBRow/GoDBTrackFamilyRow.h>

Inheritance diagram for GoDBTrackFamilyRow:
Inheritance graph
[legend]
Collaboration diagram for GoDBTrackFamilyRow:
Collaboration graph
[legend]

Public Member Functions

int DoesThisTrackFamilyAlreadyExists (vtkMySQLDatabase *DatabaseConnector)
 check if the track family already exists in the database, if yes, return the corresponding ID, if not, return -1 More...
 
 GoDBTrackFamilyRow ()
 
 GoDBTrackFamilyRow (unsigned int iExistingID, vtkMySQLDatabase *DatabaseConnector)
 
int SaveInDB (vtkMySQLDatabase *DatabaseConnector)
 
 ~GoDBTrackFamilyRow ()
 
- Public Member Functions inherited from GoDBRow
StringMapConstIterator ConstMapBegin ()
 
StringMapConstIterator ConstMapEnd ()
 
void DeleteFromDB (vtkMySQLDatabase *iDatabaseConnector)
 delete from the database the row which has the same TableID More...
 
std::string GetMapValue (const std::string &key)
 return the value for the field map[key] after having removed the " at the beginning and at the end of the value if it is a string in order to get the original value. More...
 
template<typename T >
GetMapValue (const std::string &key)
 
std::string GetTableIDName ()
 
std::string GetTableName ()
 
std::vector< std::string > GetVectorColumnNames ()
 put all the keys of the map in a vector More...
 
 GoDBRow ()
 
StringMapIterator MapBegin ()
 
StringMapIterator MapEnd ()
 
std::string PrintColumnNames ()
 put all the keys of the map in a string separated by ',' More...
 
std::string PrintColumnNamesWithValues ()
 put all the keys and values of the map in a string as map[key] = value separated by ',' More...
 
std::vector< std::string > PrintColumnsAndValues ()
 
std::string PrintValues ()
 put all the values of the map in a string separated by ',' More...
 
template<typename T >
void SetField (const std::string &key, const T &value)
 convert the value into a string and assign it to the key in the map More...
 
void SetField (const std::string &key, const std::string &value)
 set value as the value of map[key] after having put " at the beginning and at the end of the string, as value is a string and it will be needed for the database queries. map[key] = " "value" " More...
 
virtual bool SetValuesForSpecificID (int ID, vtkMySQLDatabase *iDatabaseConnector)
 get the data from the database corresponding to the specific ID and put them in the map More...
 
virtual ~GoDBRow ()
 

Protected Member Functions

virtual void InitializeMap ()
 virtual pure. initialize all the values of the map More...
 
- Protected Member Functions inherited from GoDBRow
void AddConditions (const std::string &iNameOfField, std::vector< FieldWithValue > &ioFieldWithValue)
 add as an element of ioFieldWithValue the name and value of the map with the key iNameOfField More...
 

Additional Inherited Members

- Public Types inherited from GoDBRow
typedef
StringMapType::const_iterator 
StringMapConstIterator
 
typedef StringMapType::iterator StringMapIterator
 
typedef std::map< std::string,
std::string > 
StringMapType
 
- Protected Attributes inherited from GoDBRow
StringMapType m_MapRow
 
std::string m_TableIDName
 
std::string m_TableName
 

Detailed Description

manages a map with keys matching fields of the gofiguredatabase TrackFamily table and values of the map matching a row of the TrackFamily table

Definition at line 50 of file GoDBTrackFamilyRow.h.

Constructor & Destructor Documentation

GoDBTrackFamilyRow::GoDBTrackFamilyRow ( )

Definition at line 37 of file GoDBTrackFamilyRow.cxx.

GoDBTrackFamilyRow::GoDBTrackFamilyRow ( unsigned int  iExistingID,
vtkMySQLDatabase *  DatabaseConnector 
)

Definition at line 45 of file GoDBTrackFamilyRow.cxx.

GoDBTrackFamilyRow::~GoDBTrackFamilyRow ( )
inline

Definition at line 58 of file GoDBTrackFamilyRow.h.

Member Function Documentation

int GoDBTrackFamilyRow::DoesThisTrackFamilyAlreadyExists ( vtkMySQLDatabase *  DatabaseConnector)

check if the track family already exists in the database, if yes, return the corresponding ID, if not, return -1

Definition at line 83 of file GoDBTrackFamilyRow.cxx.

void GoDBTrackFamilyRow::InitializeMap ( )
protectedvirtual

virtual pure. initialize all the values of the map

Implements GoDBRow.

Definition at line 54 of file GoDBTrackFamilyRow.cxx.

int GoDBTrackFamilyRow::SaveInDB ( vtkMySQLDatabase *  DatabaseConnector)

Definition at line 67 of file GoDBTrackFamilyRow.cxx.


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