supla-device
Loading...
Searching...
No Matches
Supla::KeyValueElement Class Reference
Collaboration diagram for Supla::KeyValueElement:

Public Member Functions

 KeyValueElement (const char *keyName)
 
bool isKeyEqual (const char *keyToCheck)
 
KeyValueElementgetNext ()
 
bool hasNext ()
 
void setNext (KeyValueElement *toBeSet)
 
void add (KeyValueElement *toBeAdded)
 
size_t serialize (uint8_t *destination, size_t maxSize)
 
bool setString (const char *value)
 
bool getString (char *value, size_t maxSize)
 
int getStringSize ()
 
bool setBlob (const char *value, size_t blobSize)
 
bool getBlob (char *value, size_t blobSize)
 
int getBlobSize ()
 
bool getInt8 (int8_t *result)
 
bool getUInt8 (uint8_t *result)
 
bool getInt32 (int32_t *result)
 
bool getUInt32 (uint32_t *result)
 
bool setInt8 (const int8_t value)
 
bool setUInt8 (const uint8_t value)
 
bool setInt32 (const int32_t value)
 
bool setUInt32 (const uint32_t value)
 

Protected Attributes

KeyValueElementnext = nullptr
 
char key [SUPLA_STORAGE_KEY_SIZE] = {}
 
enum DataType dataType = DATA_TYPE_NOT_SET
 
unsigned int size = 0
 
union { 
 
   uint8_t *   uint8ptr = nullptr 
 
   char *   charPtr 
 
   uint8_t   uint8 
 
   int8_t   int8 
 
   uint32_t   uint32 
 
   int32_t   int32 
 
data 
 

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