[MERGE] libi2ncommon: (reinhard) added getter to WEEK...
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 8 Jul 2008 11:40:21 +0000 (11:40 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 8 Jul 2008 11:40:21 +0000 (11:40 +0000)
src/timefunc.hxx

index dd8aec1..e4121ff 100644 (file)
@@ -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