author | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
commit | 04fb190243442e83349f129b523ab747e58100bf (patch) (unidiff) | |
tree | ddc28357fbe78b07fd3a5e0aa8088130bf305829 /include/napkin/types.h | |
download | napkin-04fb190243442e83349f129b523ab747e58100bf.zip napkin-04fb190243442e83349f129b523ab747e58100bf.tar.gz napkin-04fb190243442e83349f129b523ab747e58100bf.tar.bz2 |
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/napkin/types.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/napkin/types.h b/include/napkin/types.h new file mode 100644 index 0000000..2bc3a0a --- a/dev/null +++ b/include/napkin/types.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef __NAPKIN_TYPES_H | ||
2 | #define __NAPKIN_TYPES_H | ||
3 | |||
4 | #include <time.h> | ||
5 | #include <string> | ||
6 | #include <vector> | ||
7 | #include <tr1/memory> | ||
8 | |||
9 | namespace napkin { | ||
10 | using std::vector; | ||
11 | using std::tr1::shared_ptr; | ||
12 | using std::string; | ||
13 | |||
14 | class hypnodata_t { | ||
15 | public: | ||
16 | time_t to_bed; | ||
17 | time_t alarm; | ||
18 | int window; | ||
19 | vector<time_t> almost_awakes; | ||
20 | int data_a; | ||
21 | |||
22 | void clear(); | ||
23 | |||
24 | void set_to_bed(const string& w3c); | ||
25 | void set_alarm(const string& w3c); | ||
26 | void set_window(const string& str); | ||
27 | void set_data_a(const string& str); | ||
28 | void set_almost_awakes(const string& str); | ||
29 | |||
30 | const string w3c_to_bed() const; | ||
31 | const string w3c_alarm() const; | ||
32 | const string w3c_almostawakes() const; | ||
33 | |||
34 | const string str_to_bed() const; | ||
35 | const string str_alarm() const; | ||
36 | const string str_date() const; | ||
37 | const string str_data_a() const; | ||
38 | |||
39 | time_t aligned_start() const; | ||
40 | }; | ||
41 | |||
42 | typedef shared_ptr<hypnodata_t> hypnodata_ptr_t; | ||
43 | |||
44 | } | ||
45 | |||
46 | #endif /* __NAPKIN_TYPES_H */ | ||