convert.h

Go to the documentation of this file.
00001 
00018 #ifndef _CONVERT_H_
00019 #define _CONVERT_H_
00020 
00021 
00022 #include <string>
00023 
00024 
00031 class Convert
00032 {
00033         private:
00034 
00035                 // Disable both constructors, destructor and assignment operator
00036                 Convert();
00037                 ~Convert();
00038                 Convert(const Convert &);
00039                 Convert & operator=(const Convert &);
00040 
00041         public:
00042 
00051                 static std::string IntToString(int n);
00052 
00061                 static int StringToInt(const std::string& str);
00062 
00071                 static std::string UnsignedToString(unsigned n);
00072 
00081                 static unsigned StringToUnsigned(const std::string& str);
00082 
00090                 static std::string BoolToString(bool b);
00091 
00100                 static bool StringToBool(const std::string& str);
00101 };
00102 
00103 #endif

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6