/[projects]/smsdaemon/Value.cpp
ViewVC logotype

Diff of /smsdaemon/Value.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 167 by torben, Sun Dec 7 20:11:40 2008 UTC revision 168 by torben, Tue Dec 9 21:44:15 2008 UTC
# Line 70  Value::operator std::string() const Line 70  Value::operator std::string() const
70          return value_;          return value_;
71  }  }
72    
73    Value::operator const char*() const
74    {
75            return value_.c_str();
76    }
77    
78  Value::operator double() const  Value::operator double() const
79  {  {
80          return atof(value_.c_str());          return atof(value_.c_str());
# Line 80  Value::operator int() const Line 85  Value::operator int() const
85          return atoi(value_.c_str());          return atoi(value_.c_str());
86  }  }
87    
88    
89    
90    std::string Value::StringValue() const
91    {
92            return value_;
93    }
94    
95    double Value::DoubleValue() const
96    {
97            return atof(value_.c_str());
98    }
99    
100    int Value::IntValue() const
101    {
102            return atoi(value_.c_str());
103    }

Legend:
Removed from v.167  
changed lines
  Added in v.168

  ViewVC Help
Powered by ViewVC 1.1.20