From ae3915accefd16951ba79ae66b2266023c258756 Mon Sep 17 00:00:00 2001 From: Gerd v. Egidy Date: Fri, 3 Sep 2004 10:35:07 +0000 Subject: [PATCH] libi2ncommon: (gerd) improve WEEK interface --- src/timefunc.hxx | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/timefunc.hxx b/src/timefunc.hxx index af7d71d..c4a5436 100644 --- a/src/timefunc.hxx +++ b/src/timefunc.hxx @@ -50,6 +50,14 @@ class WEEK operator std::bitset<7>() const { return days; } + + void set(WEEKDAY d, bool value=true) + { days[d]=value; } + + bool all_set() const + { return (days.count()==7); } + bool none_set() const + { return days.none(); } std::string get_daystring() const; std::string get_displaystring() const; -- 1.7.1