49 this->
m_MapRow[
"ChannelID"] = std::string(
"0" );
51 this->
m_MapRow[
"ImagingSessionID"] = std::string(
"0" );
52 this->
m_MapRow[
"ColorID"] = std::string(
"0" );
53 this->
m_MapRow[
"ChannelNumber"] = std::string(
"0" );
54 this->
m_MapRow[
"NumberOfBits"] = std::string(
"0" );
64 if ( ChannelID == -1 )
66 ChannelID = AddOnlyOneNewObjectInTable< GoDBChannelRow >(
67 DatabaseConnector,
"channel", *
this,
"ChannelID");
76 vtkMySQLDatabase *DatabaseConnector)
78 std::vector< FieldWithValue > Conditions;
82 return FindOneID(DatabaseConnector,
"channel",
"ChannelID", Conditions);
abstract class manages a map with keys matching fields of a gofiguredatabase table and values of the ...
std::string m_TableIDName
virtual void InitializeMap()
virtual pure. initialize all the values of the map
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.
int DoesThisChannelAlreadyExists(vtkMySQLDatabase *DatabaseConnector)
check if the channel already exists in the database, if yes, return the corresponding ID...
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 ...