30 #include "Notification.h"
35 #include "platform/Log.h"
98 typedef std::map<uint8_t, zwNode *> zwNodeMap_t;
124 std::string userConfigDir=
"",
125 std::string cmdLine=
"");
185 bool init(std::string devicePath,
bool isHID=
false);
257 void setValueHelp(
int nodeId,
int index, std::string text);
339 void setValueAsBytes(
int nodeId,
int index, uint8_t *val, uint8_t len);
530 return m_initialized;
553 bool getValueID(
int nodeId,
int index, OpenZWave::ValueID *vid);
579 OZW(
OZW const &) =
delete;
580 OZW& operator=(
OZW const&) =
delete;
583 static OZW* m_instance;
592 std::string m_devicePath;
596 static void notificationHandler(OpenZWave::Notification
601 zwNodeMap_t m_zwNodeMap;
604 pthread_mutex_t m_nodeLock;
608 pthread_mutex_t m_initLock;
609 pthread_cond_t m_initCond;
void optionAddBool(std::string name, bool val)
Definition: ozw.cxx:135
uint8_t getValueAsByte(int nodeId, int index)
Definition: ozw.cxx:831
void setValueAsInt32(int nodeId, int index, int32_t val)
Definition: ozw.cxx:611
void optionsCreate(std::string configPath="/etc/openzwave", std::string userConfigDir="", std::string cmdLine="")
Definition: ozw.cxx:122
bool getValueID(int nodeId, int index, OpenZWave::ValueID *vid)
Definition: ozw.cxx:406
void setValueAsBytes(int nodeId, int index, uint8_t *val, uint8_t len)
Definition: ozw.cxx:659
int getValueMin(int nodeId, int index)
Definition: ozw.cxx:720
OZW()
Definition: ozw.cxx:44
bool getValueAsBool(int nodeId, int index)
Definition: ozw.cxx:804
void setDebug(bool enable)
Definition: ozw.cxx:987
bool isValueSet(int nodeId, int index)
Definition: ozw.cxx:776
void setValueAsBool(int nodeId, int index, bool val)
Definition: ozw.cxx:539
bool init(std::string devicePath, bool isHID=false)
Definition: ozw.cxx:154
bool isValuePolled(int nodeId, int index)
Definition: ozw.cxx:790
bool isNodeFrequentListeningDevice(int nodeId)
Definition: ozw.cxx:951
std::string getValueAsString(int nodeId, int index)
Definition: ozw.cxx:441
void setValueAsInt16(int nodeId, int index, int16_t val)
Definition: ozw.cxx:635
void unlockNodes()
Definition: ozw.hpp:575
~OZW()
Definition: ozw.cxx:79
float getValueAsFloat(int nodeId, int index)
Definition: ozw.cxx:858
bool isNodeAwake(int nodeId)
Definition: ozw.cxx:963
void setValueHelp(int nodeId, int index, std::string text)
Definition: ozw.cxx:527
void setValueAsFloat(int nodeId, int index, float val)
Definition: ozw.cxx:587
void setValueUnits(int nodeId, int index, std::string text)
Definition: ozw.cxx:473
bool isNodeListeningDevice(int nodeId)
Definition: ozw.cxx:939
void optionsLock()
Definition: ozw.cxx:147
int getValueAsInt16(int nodeId, int index)
Definition: ozw.cxx:912
std::string getValueHelp(int nodeId, int index)
Definition: ozw.cxx:512
void optionAddString(std::string name, std::string val, bool append)
Definition: ozw.cxx:141
int getValueAsInt32(int nodeId, int index)
Definition: ozw.cxx:885
bool isValueReadOnly(int nodeId, int index)
Definition: ozw.cxx:748
void setValueAsString(int nodeId, int index, std::string val)
Definition: ozw.cxx:683
void setValueLabel(int nodeId, int index, std::string text)
Definition: ozw.cxx:500
void refreshValue(int nodeId, int index)
Definition: ozw.cxx:708
bool isInitialized()
Definition: ozw.hpp:528
std::string getValueLabel(int nodeId, int index)
Definition: ozw.cxx:485
void lockNodes()
Definition: ozw.hpp:570
static OZW * instance()
Definition: ozw.cxx:114
int getValueMax(int nodeId, int index)
Definition: ozw.cxx:734
std::string getValueUnits(int nodeId, int index)
Definition: ozw.cxx:458
void optionAddInt(std::string name, int val)
Definition: ozw.cxx:129
void dumpNodes(bool all=false)
Definition: ozw.cxx:348
uint32_t getHomeID()
Definition: ozw.hpp:560
void setValueAsByte(int nodeId, int index, uint8_t val)
Definition: ozw.cxx:563
bool isValueWriteOnly(int nodeId, int index)
Definition: ozw.cxx:762
bool isNodeInfoReceived(int nodeId)
Definition: ozw.cxx:975