git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1344894
)
libi2ncommon: (gerd) improve WEEK interface
author
Gerd v. Egidy
<gerd.von.egidy@intra2net.com>
Fri, 3 Sep 2004 10:35:07 +0000 (10:35 +0000)
committer
Gerd v. Egidy
<gerd.von.egidy@intra2net.com>
Fri, 3 Sep 2004 10:35:07 +0000 (10:35 +0000)
src/timefunc.hxx
patch
|
blob
|
blame
|
history
diff --git
a/src/timefunc.hxx
b/src/timefunc.hxx
index
af7d71d
..
c4a5436
100644
(file)
--- 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;