44 std::stringstream output;
45 for(std::map<std::string, float>::const_iterator iter=data.begin(); iter!=data.end(); ++iter)
47 if(iter != data.begin())
59 std::map<std::string, float> output;
60 std::list<std::string> tuplets =
uSplit(data,
';');
61 for(std::list<std::string>::iterator iter=tuplets.begin(); iter!=tuplets.end(); ++iter)
63 std::list<std::string> p =
uSplit(*iter,
':');
66 std::string key = p.front();
67 std::string value = p.back();
95 uInsert(
_data, std::pair<std::string, float>(name, value));
std::map< std::string, float > _data
float UTILITE_EXP uStr2Float(const std::string &str)
Some conversion functions.
std::list< std::string > uSplit(const std::string &str, char separator= ' ')
Wrappers of STL for convenient functions.
const std::map< std::string, float > & data() const
static std::map< std::string, float > _defaultData
static std::string serializeData(const std::map< std::string, float > &data)
static bool _defaultDataInitialized
std::string UTILITE_EXP uReplaceChar(const std::string &str, char before, char after)
int _proximiyDetectionMapId
static const std::map< std::string, float > & defaultData()
static std::map< std::string, float > deserializeData(const std::string &data)
std::string UTILITE_EXP uNumber2Str(unsigned int number)
void addStatistic(const std::string &name, float value)
void uInsert(std::map< K, V > &map, const std::pair< K, V > &pair)