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) {
void setDayOfWeek(const unsigned short, const bool)
Handle on the StdAir library context.
const std::string describe() const
const bool isValid() const
const std::string describeShort() const
DoWStruct shift(const long &) const
const DOW_String_T DEFAULT_DOW_STRING
const std::string DOW_STR[]
DoWStruct intersection(const DoWStruct &) const
bool getStandardDayOfWeek(const unsigned short i) const
bool getDayOfWeek(const unsigned short i) const