summaryrefslogtreecommitdiff
path: root/tools/libltgrey.h
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-31 14:52:41 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-31 15:13:41 (GMT)
commit53d40691f0285c781a3ca8ab394e29c6baf90c98 (patch)
tree20ef853766d4cc3b1a278d0d2f73852045ccf5a4 /tools/libltgrey.h
parent64b9aec12be7080c3b81e505044b139d56bb07c4 (diff)
basically working: two directories
Diffstat (limited to 'tools/libltgrey.h')
-rw-r--r--tools/libltgrey.h11
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);