00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __freConvert_h
00023 #define __freConvert_h
00024
00025 #include "freElementals.h"
00026
00027 #include <stdlib.h>
00028
00029 namespace FREE
00030 {
00031
00032 namespace Convert
00033 {
00034 std::string ToStr(const double& dValue, const int iPrecision=10);
00035 std::string ToStr(const float& fValue, const int iPrecision=10);
00036 std::string ToStr(const bool& bValue);
00037 std::string ToStr(const int& iValue);
00038 std::string ToStr(const unsigned int& iValue);
00039 std::string ToStr(const long& lValue);
00040 std::string ToStr(const unsigned long& lValue);
00041 std::string ToStr(const DataAccessType& da);
00042
00043 double ToDouble(const std::string& sValue);
00044 bool IsADouble(const std::string& sValue);
00045
00046 float ToFloat(const std::string& sValue);
00047
00048 int ToInt(const std::string& sValue);
00049 bool IsAInt(const std::string& sValue);
00050
00051 unsigned int ToUInt(const std::string& sValue);
00052
00053 long ToLong(const std::string& sValue);
00054 bool IsALong(const std::string& sValue);
00055
00056 unsigned long ToULong(const std::string& sValue);
00057
00058 bool ToBool(const std::string& sValue);
00059
00060 DataAccessType ToDataAccessType(const std::string& sValue);
00061 }
00062
00063 }
00064 #endif