6 #include <jsoncpp/json/value.h>
38 const std::map<std::string, int> &
getIntMap();
48 const std::map<std::string, std::string> &
getStringMap();
53 const std::map<std::string, SolutionData*> &
getSDMap();
191 std::map<std::string, int> _intMap;
196 std::map<std::string, double> _doubleMap;
201 std::map<std::string, std::string> _stringMap;
206 std::map<std::string, SolutionData*> _SDMap;
233 #endif // SOLUTIONDATA_H
const std::map< std::string, double > & getDoubleMap()
Definition: solutiondata.cpp:45
void clear()
clean all the maps.
Definition: solutiondata.cpp:242
const std::map< std::string, int > & getIntMap()
Definition: solutiondata.cpp:40
void copySolutionData(SolutionData *SD)
copy the data of a solutionData pointer into this one
Definition: solutiondata.cpp:24
void print()
Call getHumanReadableData() and print the return value.
Definition: solutiondata.cpp:179
std::string getHumanReadableData()
Transform the data into human readable strings.
Definition: solutiondata.cpp:132
std::string getSpace()
Definition: solutiondata.cpp:222
void loadFromJsonValue(Json::Value root)
Fill the maps with data retrived from root, a json value.
Definition: solutiondata.cpp:207
Json::Value getJsonValue()
Transform the data into json.
Definition: solutiondata.cpp:184
This file implements macros to help with the logging, in a way similar to ROS, using log4cxx...
SolutionData * getSDMapEntry(std::string key)
Definition: solutiondata.cpp:123
const std::map< std::string, SolutionData * > & getSDMap()
Definition: solutiondata.cpp:55
std::string getStringMapEntry(std::string key)
Definition: solutiondata.cpp:118
double getDoubleMapEntry(std::string key)
Definition: solutiondata.cpp:113
void setSpace(std::string s)
Set the space to leave for this specific map when creating a human readable string.
Definition: solutiondata.cpp:227
void setSize(int s)
Definition: solutiondata.cpp:237
int getSize()
Definition: solutiondata.cpp:232
std::multimap< std::string, std::string > getStringAsMultimapMap()
transform the string map into a multimap of strings
Definition: solutiondata.cpp:60
int getIntMapEntry(std::string key)
Definition: solutiondata.cpp:108
void incrementMapEntry(std::string key)
search in the int (first) and the double maps the key param and if found increment by 1 its value...
Definition: solutiondata.cpp:88
Info storage class.
Definition: solutiondata.h:19
void setMapEntry(std::string key, int val)
Definition: solutiondata.cpp:68
const std::map< std::string, std::string > & getStringMap()
Definition: solutiondata.cpp:50