11 #include "iotcs_virtual_device.h"
31 NamedValue(iotcs_named_value *v)
throw (std::invalid_argument);
32 NamedValue(iotcs_named_value v)
throw (std::invalid_argument);
47 template <
typename T> T
getValue()
const;
53 const std::string&
getName()
const;
55 enum Type {Int, Number, String, Bool, DateTime, StorageObj, None};
56 void checkType(Type)
const;
59 iotcs_named_value value;
NamedValue(iotcs_named_value *v)
Construct name-value pair from C Library structure.
const std::string & getName() const
Get the name.
Definition: NamedValue.hpp:24
NamedValue * next() const
Get the next name-value pair in the event.
Definition: StorageObject.hpp:158
T getValue() const
Get the value.