Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
#include <cs_PresencePredicate.h>
Public Types | |
enum class | Condition : uint8_t { VacuouslyTrue = 0 , AnyoneInSelectedRooms = 1 , NooneInSelectedRooms = 2 , AnyoneInSphere = 3 , NooneInSphere = 4 } |
typedef std::array< uint8_t, 9 > | SerializedDataType |
Public Member Functions | |
PresencePredicate (Condition c, PresenceStateDescription presence) | |
PresencePredicate (SerializedDataType arr) | |
bool | requiresPresence () const |
bool | requiresAbsence () const |
SerializedDataType | serialize () |
bool | isTrue (PresenceStateDescription presence) |
void | print () |
Public Attributes | |
Condition | _condition |
PresenceStateDescription | _presence |
typedef std::array<uint8_t, 9> PresencePredicate::SerializedDataType |
|
strong |
PresencePredicate::PresencePredicate | ( | Condition | c, |
PresenceStateDescription | presence | ||
) |
bool PresencePredicate::isTrue | ( | PresenceStateDescription | presence | ) |
|
inline |
bool PresencePredicate::requiresAbsence | ( | ) | const |
bool PresencePredicate::requiresPresence | ( | ) | const |
SerializedDataType PresencePredicate::serialize | ( | ) |
Condition PresencePredicate::_condition |
PresenceStateDescription PresencePredicate::_presence |