| OpenZWave Library 1.6.0

SimpleAV.h
Go to the documentation of this file.
1 #include "command_classes/CommandClass.h"
2
3 namespace OpenZWave
4 {
6 class SimpleAV : public CommandClass
7 {
8 public:
9 static CommandClass* Create(uint32 const _homeId, uint8 const _nodeId) { return new SimpleAV(_homeId, _nodeId); }
10 virtual ~SimpleAV() {}
11
12 static uint8 const StaticGetCommandClassId() { return 0x94; }
13 static string const StaticGetCommandClassName() { return "COMMAND_CLASS_SIMPLE_AV_CONTROL"; }
14
15 // From CommandClass
16 virtual uint8 const GetCommandClassId()const { return StaticGetCommandClassId(); }
17 virtual string const GetCommandClassName()const { return StaticGetCommandClassName(); }
18 virtual bool HandleMsg(uint8 const* _data, uint32 const _length, uint32 const _instance = 1);
19 virtual bool SetValue(Value const& _value);
20
21 protected:
22 virtual void CreateVars(uint8 const _instance);
23
24 private:
25 SimpleAV(uint32 const _homeId, uint8 const _nodeId) : CommandClass(_homeId, _nodeId) {}
26 uint8 m_sequence;
27 };
28
29 } // namespace OpenZWave
uint32
unsigned int uint32
Definition: Defs.h:95
OpenZWave::SimpleAV::HandleMsg
virtual bool HandleMsg(uint8 const *_data, uint32 const _length, uint32 const _instance=1)
Definition: SimpleAV.cpp:29
OpenZWave::CommandClass
Base class for all Z-Wave command classes.
Definition: CommandClass.h:56
uint8
unsigned char uint8
Definition: Defs.h:89
OpenZWave::SimpleAV::StaticGetCommandClassName
static string const StaticGetCommandClassName()
Definition: SimpleAV.h:13
OpenZWave::SimpleAV::GetCommandClassName
virtual string const GetCommandClassName() const
Definition: SimpleAV.h:17
OpenZWave::SimpleAV::CreateVars
virtual void CreateVars(uint8 const _instance)
Definition: SimpleAV.cpp:87
OpenZWave::SimpleAV::StaticGetCommandClassId
static uint8 const StaticGetCommandClassId()
Definition: SimpleAV.h:12
OpenZWave::Value
Base class for values associated with a node.
Definition: Value.h:49
OpenZWave::SimpleAV
Definition: SimpleAV.h:7
CommandClass.h
OpenZWave::SimpleAV::Create
static CommandClass * Create(uint32 const _homeId, uint8 const _nodeId)
Definition: SimpleAV.h:9
OpenZWave::SimpleAV::SetValue
virtual bool SetValue(Value const &_value)
Definition: SimpleAV.cpp:43
OpenZWave
Definition: Bitfield.h:35
OpenZWave::SimpleAV::GetCommandClassId
virtual uint8 const GetCommandClassId() const
Definition: SimpleAV.h:16
OpenZWave::SimpleAV::~SimpleAV
virtual ~SimpleAV()
Definition: SimpleAV.h:10