![]() |
OpenZWave Library
1.5.4
|
List of values sent to/received from a node. More...
#include <ValueList.h>
Classes | |
struct | Item |
An item (element) in the list of values. More... | |
Public Member Functions | |
ValueList (uint32 const _homeId, uint8 const _nodeId, ValueID::ValueGenre const _genre, uint8 const _commandClassId, uint8 const _instance, uint8 const _index, string const &_label, string const &_units, bool const _readOnly, bool const _writeOnly, vector< Item > const &_items, int32 const _valueIdx, uint8 const _pollIntensity, uint8 const _size=4) | |
ValueList () | |
virtual | ~ValueList () |
bool | SetByLabel (string const &_label) |
bool | SetByValue (int32 const _value) |
void | OnValueRefreshed (int32 const _valueIdx) |
virtual string const | GetAsString () const |
virtual bool | SetFromString (string const &_value) |
virtual void | ReadXML (uint32 const _homeId, uint8 const _nodeId, uint8 const _commandClassId, TiXmlElement const *_valueElement) |
virtual void | WriteXML (TiXmlElement *_valueElement) |
Item const * | GetItem () const |
int32 | GetItemIdxByLabel (string const &_label) const |
int32 | GetItemIdxByValue (int32 const _value) const |
bool | GetItemLabels (vector< string > *o_items) |
bool | GetItemValues (vector< int32 > *o_values) |
uint8 | GetSize () const |
![]() | |
Value (uint32 const _homeId, uint8 const _nodeId, ValueID::ValueGenre const _genre, uint8 const _commandClassId, uint8 const _instance, uint8 const _index, ValueID::ValueType const _type, string const &_label, string const &_units, bool const _readOnly, bool const _writeOnly, bool const _isset, uint8 const _pollIntensity) | |
Value () | |
ValueID const & | GetID () const |
bool | IsReadOnly () const |
bool | IsWriteOnly () const |
bool | IsSet () const |
bool | IsPolled () const |
string const & | GetLabel () const |
void | SetLabel (string const &_label) |
string const & | GetUnits () const |
void | SetUnits (string const &_units) |
string const & | GetHelp () const |
void | SetHelp (string const &_help) |
uint8 const & | GetPollIntensity () const |
void | SetPollIntensity (uint8 const &_intensity) |
int32 | GetMin () const |
int32 | GetMax () const |
void | SetChangeVerified (bool _verify) |
bool | GetChangeVerified () |
bool | Set () |
![]() | |
Ref () | |
void | AddRef () |
int32 | Release () |
Additional Inherited Members | |
![]() | |
static ValueID::ValueGenre | GetGenreEnumFromName (char const *_name) |
static char const * | GetGenreNameFromEnum (ValueID::ValueGenre _genre) |
static ValueID::ValueType | GetTypeEnumFromName (char const *_name) |
static char const * | GetTypeNameFromEnum (ValueID::ValueType _type) |
![]() | |
virtual | ~Value () |
bool | IsCheckingChange () const |
void | SetCheckingChange (bool _check) |
void | OnValueRefreshed () |
void | OnValueChanged () |
int | VerifyRefreshedValue (void *_originalValue, void *_checkValue, void *_newValue, ValueID::ValueType _type, int _length=0) |
![]() | |
virtual | ~Ref () |
![]() | |
int32 | m_min |
int32 | m_max |
time_t | m_refreshTime |
bool | m_verifyChanges |
List of values sent to/received from a node.
ValueList::ValueList | ( | uint32 const | _homeId, |
uint8 const | _nodeId, | ||
ValueID::ValueGenre const | _genre, | ||
uint8 const | _commandClassId, | ||
uint8 const | _instance, | ||
uint8 const | _index, | ||
string const & | _label, | ||
string const & | _units, | ||
bool const | _readOnly, | ||
bool const | _writeOnly, | ||
vector< Item > const & | _items, | ||
int32 const | _valueIdx, | ||
uint8 const | _pollIntensity, | ||
uint8 const | _size = 4 |
||
) |
ValueList::ValueList | ( | ) |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from OpenZWave::Value.
ValueList::Item const * ValueList::GetItem | ( | ) | const |
int32 ValueList::GetItemIdxByLabel | ( | string const & | _label | ) | const |
bool ValueList::GetItemLabels | ( | vector< string > * | o_items | ) |
bool ValueList::GetItemValues | ( | vector< int32 > * | o_values | ) |
|
inline |
void ValueList::OnValueRefreshed | ( | int32 const | _valueIdx | ) |
|
virtual |
Reimplemented from OpenZWave::Value.
bool ValueList::SetByLabel | ( | string const & | _label | ) |
bool ValueList::SetByValue | ( | int32 const | _value | ) |
|
inlinevirtual |
Reimplemented from OpenZWave::Value.
|
virtual |
Reimplemented from OpenZWave::Value.