58 std::stringstream valueToQuery;
59 valueToQuery <<
"\"" << value <<
"\"";
60 it->second = valueToQuery.str();
64 std::cerr <<
"This field does not exist!!!" << std::endl;
73 std::stringstream ListValues;
78 ListValues << iter->second <<
", ";
80 size_t n = ListValues.str().length() - 2;
81 return ListValues.str().substr(0, n);
89 std::stringstream ListColumnNames;
95 ListColumnNames << iter->first <<
", ";
97 size_t n = ListColumnNames.str().length() - 2;
98 return ListColumnNames.str().substr(0, n);
105 std::stringstream StringQuery;
111 StringQuery << iter->first;
112 StringQuery <<
" = ";
113 StringQuery << iter->second;
116 size_t n = StringQuery.str().length() - 2;
117 return StringQuery.str().substr(0, n);
125 std::vector< std::string > VectorColumnNames;
130 VectorColumnNames.push_back(iter->first);
132 return VectorColumnNames;
176 std::string oMapValue =
"noValue";
186 oMapValue = iter->second;
193 std::string CharacterToCompare = oMapValue.substr(0, 1);
196 if ( CharacterToCompare ==
"\"" )
199 oMapValue = oMapValue.substr(1, oMapValue.size() - 2);
210 vtkMySQLDatabase *iDatabaseConnector)
212 std::vector< std::string > ResultQuery =
217 if ( ResultQuery.empty() )
222 if ( this->
m_MapRow.size() != ResultQuery.size() )
224 std::cout <<
"pb the map and the query results are not the same size";
225 std::cout <<
"Debug: In " << __FILE__ <<
", line " << __LINE__;
226 std::cout << std::endl;
230 std::vector< std::string >::iterator iterResultQuery =
235 while ( iterMap != this->
MapEnd() )
237 iterMap->second = *iterResultQuery;
264 const std::string& iNameOfField, std::vector< FieldWithValue > & ioFieldWithValue)
268 ioFieldWithValue.push_back(temp);
274 vtkMySQLDatabase *iDatabaseConnector)