hueplusplus
1.0.0
|
Any number of days of the week. More...
#include <hueplusplus/TimePattern.h>
Public Member Functions | |
Weekdays () | |
Create with no days. More... | |
Weekdays (int num) | |
Create with the day num . More... | |
bool | isNone () const |
Check if no days are set. More... | |
bool | isAll () const |
Check if all days are set. More... | |
bool | isMonday () const |
Check if Monday is contained. More... | |
bool | isTuesday () const |
Check if Tuesday is contained. More... | |
bool | isWednesday () const |
Check if Wednesday is contained. More... | |
bool | isThursday () const |
Check if Thursday is contained. More... | |
bool | isFriday () const |
Check if Friday is contained. More... | |
bool | isSaturday () const |
Check if Saturday is contained. More... | |
bool | isSunday () const |
Check if Sunday is contained. More... | |
Weekdays | unionWith (Weekdays other) const |
Create set union with other Weekdays. More... | |
Weekdays | operator| (Weekdays other) const |
Create set union with other Weekdays. More... | |
std::string | toString () const |
Create a formatted, numeric string. More... | |
bool | operator== (const Weekdays &other) const |
Check whether all days are equal. More... | |
bool | operator!= (const Weekdays &other) const |
Check whether not all days are equal. More... | |
Static Public Member Functions | |
static Weekdays | none () |
Creates an empty Weekdays. More... | |
static Weekdays | all () |
Creates set of all days. More... | |
static Weekdays | monday () |
Creates Monday. More... | |
static Weekdays | tuesday () |
Creates Tuesday. More... | |
static Weekdays | wednesday () |
Creates Wednesday. More... | |
static Weekdays | thursday () |
Creates Thursday. More... | |
static Weekdays | friday () |
Creates Friday. More... | |
static Weekdays | saturday () |
Creates Saturday. More... | |
static Weekdays | sunday () |
Creates Sunday. More... | |
static Weekdays | parse (const std::string &s) |
Parse from three digit code. More... | |
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.