Functions | |
std::string | intToString (int i) |
int | stringToInt (const std::string &s) |
float | stringToFloat (const std::string &s) |
|
Definition at line 17 of file Utils.h.
00017 {
00018 std::stringstream str;
00019 std::string s;
00020
00021 str << i;
00022 str >> s;
00023 return s;
00024 }
|
|
Definition at line 44 of file Utils.h.
00044 { 00045 std::istringstream stream; 00046 float f = 0.0f; 00047 00048 00049 stream.str(s); 00050 stream >> std::dec >> f; 00051 return f; 00052 } |
|
Definition at line 30 of file Utils.h.
00030 { 00031 std::istringstream stream; 00032 int d = 0; 00033 00034 00035 stream.str(s); 00036 stream >> d; 00037 return d; 00038 } |