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

Contents of /smsdaemon/Value.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168 - (show annotations) (download)
Tue Dec 9 21:44:15 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 627 byte(s)
1) SmsTool, outgoingdir - use .LOCK files
2) SmsTool: make it possible to configure inbox and outgoing directories
3) Value: make some extra data accessor functions


1
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 operator const char* () const;
28 std::string StringValue() const;
29 double DoubleValue() const;
30 int IntValue() const;
31 private:
32 std::string value_;
33 };
34
35 #endif //VALUE_H__

  ViewVC Help
Powered by ViewVC 1.1.20