Parent Directory | Revision Log
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 | 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 | torben | 168 | operator const char* () const; |
28 | std::string StringValue() const; | ||
29 | double DoubleValue() const; | ||
30 | int IntValue() const; | ||
31 | torben | 147 | private: |
32 | std::string value_; | ||
33 | }; | ||
34 | |||
35 | #endif //VALUE_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |