]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/CreationTool.h
bbtk-Slicer Module JGRR
[creaCLI.git] / bbtk_Slicer_PKG / src / CreationTool.h
diff --git a/bbtk_Slicer_PKG/src/CreationTool.h b/bbtk_Slicer_PKG/src/CreationTool.h
new file mode 100644 (file)
index 0000000..1859178
--- /dev/null
@@ -0,0 +1,63 @@
+/* 
+ * File:   CreationTool.h
+ * Author: riveros
+ *
+ * Created on 23 mars 2012, 10:12
+ */
+
+#ifndef CREATIONTOOL_H
+#define        CREATIONTOOL_H
+
+#include <string>
+#include <iostream>
+#include <sstream>
+
+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 */
+