1 #ifndef LS_DEVICE_VARIABLE_H 2 #define LS_DEVICE_VARIABLE_H 6 #pragma warning( push ) 7 #pragma warning( disable : 4251 ) 29 DeviceVariable(
const std::string& name,
const std::string& value );
38 DeviceVariable( int64_t
id,
const std::string& name,
const std::string& value,
39 const std::string& dateTimeUpdated );
48 int64_t
id()
const {
return m_id; }
52 const std::string&
name()
const {
return m_name; }
56 void setName(
const std::string& name ) { m_name = name; }
60 const std::string&
value()
const {
return m_value; }
64 void setValue(
const std::string& value ) { m_value = value; }
69 tm dateTimeUpdated()
const;
74 tm dateTimeUpdatedUtc()
const;
80 std::string m_dateTimeUpdated;
85 #pragma warning( pop ) 88 #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.
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
int64_t id() const
Getter method for device variable id.