From: Thomas Jarosch Date: Tue, 8 Jul 2008 11:40:21 +0000 (+0000) Subject: [MERGE] libi2ncommon: (reinhard) added getter to WEEK... X-Git-Tag: v2.6~165 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=aff80c26bdd7ee0bcd3bbeafdff98c15eb84d104;p=libi2ncommon [MERGE] libi2ncommon: (reinhard) added getter to WEEK... --- diff --git a/src/timefunc.hxx b/src/timefunc.hxx index dd8aec1..e4121ff 100644 --- a/src/timefunc.hxx +++ b/src/timefunc.hxx @@ -65,6 +65,9 @@ class WEEK void set(WEEKDAY d, bool value=true) { days[d]=value; } + bool get(WEEKDAY d) const { return days[d]; } + bool is_set(WEEKDAY d) const { return days[d]; } + bool all_set() const { return (days.count()==7); } bool none_set() const