source:
PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/mixedTools.h
@
257
Last change on this file since 257 was 257, checked in by , 11 years ago | |
---|---|
File size: 374 bytes |
Line | |
---|---|
1 | #ifndef MIXEDTOOLS_SEEN |
2 | #define MIXEDTOOLS_SEEN |
3 | |
4 | #include <iostream> |
5 | #include <sstream> |
6 | #include <string> |
7 | |
8 | |
9 | class mixedTools |
10 | { |
11 | public: |
12 | |
13 | static string doubleToString(double x) |
14 | { |
15 | std::ostringstream ostr; |
16 | ostr << x; |
17 | return ostr.str(); |
18 | } |
19 | static string intToString(int x) |
20 | { |
21 | std::ostringstream ostr; |
22 | ostr << x; |
23 | return ostr.str(); |
24 | } |
25 | }; |
26 | |
27 | #endif |
Note: See TracBrowser
for help on using the repository browser.