56 this->
m_MapRow[
"IntensityID"] = std::string(
"0" );
57 this->
m_MapRow[
"Value"] = std::string(
"0" );
58 this->
m_MapRow[
"meshID"] = std::string(
"0" );
59 this->
m_MapRow[
"ChannelID"] = std::string(
"0" );
69 if ( IntensityID == -1 )
71 IntensityID = AddOnlyOneNewObjectInTable< GoDBIntensityRow >(
72 DatabaseConnector,
"intensity",
this,
"IntensityID");
81 vtkMySQLDatabase *DatabaseConnector)
83 std::vector< FieldWithValue > Conditions;
87 return FindOneID(DatabaseConnector,
"intensity",
"IntensityID", Conditions);
int DoesThisIntensityAlreadyExists(vtkMySQLDatabase *DatabaseConnector)
check if the intensity already exists in the database, if yes, return the corresponding ID...
std::string m_TableIDName
int SaveInDB(vtkMySQLDatabase *DatabaseConnector)
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 ...
virtual void InitializeMap()
virtual pure. initialize all the values of the map