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

Annotation of /smsdaemon/Value.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 147 - (hide annotations) (download)
Sun Dec 7 20:11:40 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 509 byte(s)
Again I forgot some files :(

1 torben 147
2     #ifndef VALUE_H__
3     #define VALUE_H__
4    
5     #include <string>
6    
7     class Value
8     {
9     public:
10     Value() {};
11     explicit Value(const std::string&);
12     explicit Value(double);
13     explicit Value(const char*);
14     explicit Value(int);
15    
16     Value(const Value&);
17     Value& operator=(Value const&);
18    
19     Value& operator=(double);
20     Value& operator=(int);
21     Value& operator=(std::string const&);
22    
23     public:
24     operator std::string() const;
25     operator double () const;
26     operator int () const;
27     private:
28     std::string value_;
29     };
30    
31     #endif //VALUE_H__

  ViewVC Help
Powered by ViewVC 1.1.20