1 #ifndef LS_DEVICE_VARIABLE_H 2 #define LS_DEVICE_VARIABLE_H 7 #pragma warning(disable : 4251) 41 DeviceVariable(int64_t
id,
const std::string &name,
const std::string &value,
42 const std::string &dateTimeUpdated);
51 int64_t
id()
const {
return m_id; }
55 const std::string &
name()
const {
return m_name; }
59 void setName(
const std::string &name) { m_name = name; }
63 const std::string &
value()
const {
return m_value; }
67 void setValue(
const std::string &value) { m_value = value; }
72 tm dateTimeUpdated()
const;
78 tm dateTimeUpdatedUtc()
const;
84 std::string m_dateTimeUpdated;
92 #endif // LS_DEVICE_VARIABLE_H const std::string & value() const
Getter method for device variable value.
void setName(const std::string &name)
Setter method for device variable name.
Class for storing key-value device variable.
const std::string & name() const
Getter method for device variable name.
void setValue(const std::string &value)
Setter method for device variable value.
int64_t id() const
Getter method for device variable id.