X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Slicer_PKG%2Fsrc%2FCreationTool.h;fp=bbtk_Slicer_PKG%2Fsrc%2FCreationTool.h;h=1859178093bcd85398dd4cf34017e21cb1abb54d;hb=ba07bca141bd819a79c6684aa1b56b0a705aa664;hp=0000000000000000000000000000000000000000;hpb=b7eae6222a248a38098c688c9653e0d11ac8bcdc;p=creaCLI.git diff --git a/bbtk_Slicer_PKG/src/CreationTool.h b/bbtk_Slicer_PKG/src/CreationTool.h new file mode 100644 index 0000000..1859178 --- /dev/null +++ b/bbtk_Slicer_PKG/src/CreationTool.h @@ -0,0 +1,63 @@ +/* + * File: CreationTool.h + * Author: riveros + * + * Created on 23 mars 2012, 10:12 + */ + +#ifndef CREATIONTOOL_H +#define CREATIONTOOL_H + +#include +#include +#include + +namespace Mthd { + + class Aux { + public: + static std::string toString ( float n ) ; + static std::string toString ( double n ) ; + static std::string toString ( long double n ) ; + + static std::string toString ( char n ) ; + static std::string toString ( unsigned char n ) ; + + static std::string toString ( short n ) ; + static std::string toString ( unsigned short n ) ; + + static std::string toString ( int n ) ; + static std::string toString ( long int n ) ; + static std::string toString ( unsigned int n ) ; + static std::string toString ( unsigned long n ) ; + static std::string toString ( unsigned long long n ) ; + + static std::string toString ( std::string n ) ; + + static char* toCharArrray ( float n ) ; + static char* toCharArrray ( double n ) ; + static char* toCharArrray ( long double n ) ; + + static char* toCharArrray ( char n ) ; + static char* toCharArrray ( unsigned char n ) ; + + static char* toCharArrray ( short n ) ; + static char* toCharArrray ( unsigned short n ) ; + + static char* toCharArrray ( int n ) ; + static char* toCharArrray ( long int n ) ; + static char* toCharArrray ( unsigned int n ) ; + static char* toCharArrray ( long unsigned int n ) ; + + static char* toCharArrray ( std::string n ) ; + + static std::string replace_str ( std::string input , std::string old_str , std::string new_str ) ; + + } ; + +} ; + + + +#endif /* CREATIONTOOL_H */ +