diff options
Diffstat (limited to 'tools/libltgrey.h')
-rw-r--r-- | tools/libltgrey.h | 11 |
1 files changed, 7 insertions, 4 deletions
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); |