From 53d40691f0285c781a3ca8ab394e29c6baf90c98 Mon Sep 17 00:00:00 2001 From: John Denker Date: Tue, 31 Jul 2012 07:52:41 -0700 Subject: basically working: two directories --- tools/libltgrey.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tools/libltgrey.h') diff --git a/tools/libltgrey.h b/tools/libltgrey.h index 9891256..6447297 100644 --- a/tools/libltgrey.h +++ b/tools/libltgrey.h @@ -20,10 +20,12 @@ typedef enum { class boxer{ public: std::string dir; + std::string prefix; int min; int max; - boxer(const std::string _dir, const int _min, const int _max) - : dir(_dir), min(_min), max(_max) + boxer(const std::string _dir, const std::string _prefix, + const int _min, const int _max) + : dir(_dir), prefix(_prefix), min(_min), max(_max) {} }; @@ -57,6 +59,7 @@ public: box_state get_40(const std::string mid); int set_40(const std::string mid, const int shift); box_state get_rep(const std::string mid); + int set_rep(const std::string mid, const int shift); }; // beware: access illogically comes *before* modification @@ -68,5 +71,5 @@ const int minute(60); const int hour(60*minute); const int day(24*hour); -const boxer box_40 ("quarante", 15*minute, 4*hour); -const boxer box_rep("repute", 0, 35*day); +const boxer box_40 ("quarante", "mid_", 15*minute, 4*hour); +const boxer box_rep("repute", "dom_", 0, 35*day); -- cgit v1.2.3