summaryrefslogtreecommitdiffabout
path: root/include/napkin/types.h
authorMichael Krelin <hacker@klever.net>2008-04-05 11:17:33 (UTC)
committer Michael Krelin <hacker@klever.net>2008-04-05 11:17:33 (UTC)
commit04fb190243442e83349f129b523ab747e58100bf (patch) (side-by-side diff)
treeddc28357fbe78b07fd3a5e0aa8088130bf305829 /include/napkin/types.h
downloadnapkin-04fb190243442e83349f129b523ab747e58100bf.zip
napkin-04fb190243442e83349f129b523ab747e58100bf.tar.gz
napkin-04fb190243442e83349f129b523ab747e58100bf.tar.bz2
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include/napkin/types.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/napkin/types.h46
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 @@
+#ifndef __NAPKIN_TYPES_H
+#define __NAPKIN_TYPES_H
+
+#include <time.h>
+#include <string>
+#include <vector>
+#include <tr1/memory>
+
+namespace napkin {
+ using std::vector;
+ using std::tr1::shared_ptr;
+ using std::string;
+
+ class hypnodata_t {
+ public:
+ time_t to_bed;
+ time_t alarm;
+ int window;
+ vector<time_t> almost_awakes;
+ int data_a;
+
+ void clear();
+
+ void set_to_bed(const string& w3c);
+ void set_alarm(const string& w3c);
+ void set_window(const string& str);
+ void set_data_a(const string& str);
+ void set_almost_awakes(const string& str);
+
+ const string w3c_to_bed() const;
+ const string w3c_alarm() const;
+ const string w3c_almostawakes() const;
+
+ const string str_to_bed() const;
+ const string str_alarm() const;
+ const string str_date() const;
+ const string str_data_a() const;
+
+ time_t aligned_start() const;
+ };
+
+ typedef shared_ptr<hypnodata_t> hypnodata_ptr_t;
+
+}
+
+#endif /* __NAPKIN_TYPES_H */