15 for (
unsigned short i = 0; i < 7; ++i) {
16 _dowList.push_back (
false);
22 const unsigned short lDowStringSize = iDowString.size();
23 assert (lDowStringSize == 7);
25 _dowList.reserve (lDowStringSize);
26 for (std::string::const_iterator itChar = iDowString.begin();
27 itChar != iDowString.end(); ++itChar) {
28 const bool isDoWSet = (*itChar ==
'1')?
true:
false;
29 _dowList.push_back (isDoWSet);
35 _dowList (iDowStruct._dowList) {
41 std::ostringstream ostr;
43 for (BooleanList_T::const_iterator itDoW = _dowList.begin();
44 itDoW != _dowList.end(); ++itDoW, ++i) {
45 const char lDoW = (*itDoW ==
true)?
'1':
'0';
53 std::ostringstream ostr;
55 for (BooleanList_T::const_iterator itDoW = _dowList.begin();
56 itDoW != _dowList.end(); ++itDoW, ++i) {
57 const bool lDoW = *itDoW;
67 return _dowList.at (i);
72 unsigned short iStd = i;
78 return _dowList.at (iStd);
84 _dowList.at (i) = iBool;
91 for (
short i = 0; i < 7; ++i) {
92 const bool lDoWBool = _dowList.at (i);
93 short lIndex = (i + iNbOfDays) % 7;
106 for (
unsigned short i = 0; i < 7; ++i) {
118 for (
unsigned short i = 0; i < 7; ++i) {