|
hueplusplus 1.2.0
|
Any number of days of the week. More...
#include <hueplusplus/TimePattern.h>
Public Member Functions | |
| Weekdays () | |
| Create with no days. | |
| Weekdays (int num) | |
Create with the day num. | |
| bool | isNone () const |
| Check if no days are set. | |
| bool | isAll () const |
| Check if all days are set. | |
| bool | isMonday () const |
| Check if Monday is contained. | |
| bool | isTuesday () const |
| Check if Tuesday is contained. | |
| bool | isWednesday () const |
| Check if Wednesday is contained. | |
| bool | isThursday () const |
| Check if Thursday is contained. | |
| bool | isFriday () const |
| Check if Friday is contained. | |
| bool | isSaturday () const |
| Check if Saturday is contained. | |
| bool | isSunday () const |
| Check if Sunday is contained. | |
| Weekdays | unionWith (Weekdays other) const |
| Create set union with other Weekdays. | |
| Weekdays | operator| (Weekdays other) const |
| Create set union with other Weekdays. | |
| std::string | toString () const |
| Create a formatted, numeric string. | |
| bool | operator== (const Weekdays &other) const |
| Check whether all days are equal. | |
| bool | operator!= (const Weekdays &other) const |
| Check whether not all days are equal. | |
Static Public Member Functions | |
| static Weekdays | none () |
| Creates an empty Weekdays. | |
| static Weekdays | all () |
| Creates set of all days. | |
| static Weekdays | monday () |
| Creates Monday. | |
| static Weekdays | tuesday () |
| Creates Tuesday. | |
| static Weekdays | wednesday () |
| Creates Wednesday. | |
| static Weekdays | thursday () |
| Creates Thursday. | |
| static Weekdays | friday () |
| Creates Friday. | |
| static Weekdays | saturday () |
| Creates Saturday. | |
| static Weekdays | sunday () |
| Creates Sunday. | |
| static Weekdays | parse (const std::string &s) |
| Parse from three digit code. | |
Any number of days of the week.
Can be used to represent weekly repetitions only on certain days.
|
inline |
Create with no days.
|
inlineexplicit |
Create with the day num.
| num | Day of the week, from monday (0) to sunday (6) |
|
static |
Creates set of all days.
|
static |
Creates Friday.
| bool hueplusplus::time::Weekdays::isAll | ( | ) | const |
Check if all days are set.
| bool hueplusplus::time::Weekdays::isFriday | ( | ) | const |
Check if Friday is contained.
| bool hueplusplus::time::Weekdays::isMonday | ( | ) | const |
Check if Monday is contained.
| bool hueplusplus::time::Weekdays::isNone | ( | ) | const |
Check if no days are set.
| bool hueplusplus::time::Weekdays::isSaturday | ( | ) | const |
Check if Saturday is contained.
| bool hueplusplus::time::Weekdays::isSunday | ( | ) | const |
Check if Sunday is contained.
| bool hueplusplus::time::Weekdays::isThursday | ( | ) | const |
Check if Thursday is contained.
| bool hueplusplus::time::Weekdays::isTuesday | ( | ) | const |
Check if Tuesday is contained.
| bool hueplusplus::time::Weekdays::isWednesday | ( | ) | const |
Check if Wednesday is contained.
|
static |
Creates Monday.
|
inline |
Check whether not all days are equal.
|
inline |
Check whether all days are equal.
|
static |
Parse from three digit code.
| s | Bitmask of days as a string |
|
static |
Creates Saturday.
|
static |
Creates Sunday.
|
static |
Creates Thursday.
| std::string hueplusplus::time::Weekdays::toString | ( | ) | const |
Create a formatted, numeric string.
|
static |
Creates Tuesday.
Create set union with other Weekdays.
| other | Second set of days to combine with |
this or other
|
static |
Creates Wednesday.