X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2FStringTools.h;fp=WCudaMSE%2FBilatTools_CPP%2Fsrc%2Fcore%2Ftools%2Fheader%2FStringTools.h;h=557eccac7b6f8bd2256a25407d66193d03c9df78;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h new file mode 100755 index 0000000..557ecca --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h @@ -0,0 +1,51 @@ +#ifndef STRING_TOOLS_H_ +#define STRING_TOOLS_H_ + +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class StringTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + StringTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~StringTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + static string toString(int number); + static string toString(unsigned int number); + static string toString(long number); + static string toString(float number); + static string toString(double number); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif +