50 this->
m_MapRow[
"CoordID"] = std::string(
"0" );
51 this->
m_MapRow[
"PCoord"] = std::string(
"0" );
52 this->
m_MapRow[
"RCoord"] = std::string(
"0" );
53 this->
m_MapRow[
"CCoord"] = std::string(
"0" );
54 this->
m_MapRow[
"XTileCoord"] = std::string(
"0" );
55 this->
m_MapRow[
"YTileCoord"] = std::string(
"0" );
56 this->
m_MapRow[
"ZTileCoord"] = std::string(
"0" );
57 this->
m_MapRow[
"XCoord"] = std::string(
"0" );
58 this->
m_MapRow[
"YCoord"] = std::string(
"0" );
59 this->
m_MapRow[
"ZCoord"] = std::string(
"0" );
60 this->
m_MapRow[
"TCoord"] = std::string(
"0" );
68 std::vector< FieldWithValue > Conditions;
79 return FindOneID(DatabaseConnector,
"coordinate",
"CoordID", Conditions);
91 return AddOnlyOneNewObjectInTable< GoDBCoordinateRow >(DatabaseConnector,
92 "coordinate", *
this,
"CoordID");
std::string m_TableIDName
int SaveInDB(vtkMySQLDatabase *DatabaseConnector)
save the coordinate in the database and return the ID of the new created coordinate or the ID of the ...
int DoesThisCoordinateExist(vtkMySQLDatabase *DatabaseConnector)
return the CoordID of the coordinate with the same attributes already registered in the DB or -1 if n...
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.
virtual void InitializeMap()
virtual pure. initialize all the values of the map
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 ...