Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PresenceCondition Class Reference

#include <cs_PresenceCondition.h>

Collaboration diagram for PresenceCondition:

Public Types

typedef std::array< uint8_t, 9+4 > SerializedDataType
 

Public Member Functions

 PresenceCondition (PresencePredicate p, uint32_t t)
 
 PresenceCondition (SerializedDataType arr)
 
SerializedDataType serialize ()
 
virtual uint8_t * serialize (uint8_t *outbuff, size_t maxSize=0)
 
virtual size_t serializedSize () const
 
virtual ~PresenceCondition ()=default
 
bool isTrue (PresenceStateDescription currentPresence)
 Returns true if this condition is satisfied given the presence state. More...
 

Public Attributes

PresencePredicate predicate
 
uint32_t timeOut
 

Member Typedef Documentation

◆ SerializedDataType

typedef std::array<uint8_t, 9 + 4> PresenceCondition::SerializedDataType

Constructor & Destructor Documentation

◆ PresenceCondition() [1/2]

◆ PresenceCondition() [2/2]

◆ ~PresenceCondition()

virtual PresenceCondition::~PresenceCondition ( )
virtualdefault

Member Function Documentation

◆ isTrue()

bool PresenceCondition::isTrue ( PresenceStateDescription  currentPresence)

Returns true if this condition is satisfied given the presence state.

◆ serialize() [1/2]

SerializedDataType PresenceCondition::serialize ( )

◆ serialize() [2/2]

virtual uint8_t * PresenceCondition::serialize ( uint8_t *  outbuff,
size_t  maxSize = 0 
)
virtual

◆ serializedSize()

virtual size_t PresenceCondition::serializedSize ( ) const
virtual

Member Data Documentation

◆ predicate

PresencePredicate PresenceCondition::predicate

◆ timeOut

uint32_t PresenceCondition::timeOut

The documentation for this class was generated from the following file: