46 vtkMySQLDatabase* iDatabaseConnector)
58 this->
m_MapRow[
"TrackFamilyID"] = std::string(
"0" );
59 this->
m_MapRow[
"TrackIDMother"] = std::string(
"0" );
60 this->
m_MapRow[
"TrackIDDaughter1"] = std::string(
"0" );
61 this->
m_MapRow[
"TrackIDDaughter2"] = std::string(
"0" );
71 if ( TrackFamilyID == -1 )
73 TrackFamilyID = AddOnlyOneNewObjectInTable< GoDBTrackFamilyRow >(
74 DatabaseConnector,
"trackfamily", *
this,
"TrackFamilyID");
84 vtkMySQLDatabase *DatabaseConnector)
86 std::vector< FieldWithValue > Conditions;
virtual void InitializeMap()
virtual pure. initialize all the values of the map
abstract class manages a map with keys matching fields of a gofiguredatabase table and values of the ...
std::string m_TableIDName
virtual bool SetValuesForSpecificID(int ID, vtkMySQLDatabase *iDatabaseConnector)
get the data from the database corresponding to the specific ID and put them in the map ...
int SaveInDB(vtkMySQLDatabase *DatabaseConnector)
int DoesThisTrackFamilyAlreadyExists(vtkMySQLDatabase *DatabaseConnector)
check if the track family already exists in the database, if yes, return the corresponding ID...
int FindOneID(vtkMySQLDatabase *DatabaseConnector, const std::string &TableName, const std::string &ColumnName, const std::string &field, const std::string &value)
SELECT ColumnName FROM TableName WHERE field = value.
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 ...