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:136
uint8_t getValueAsByte(int nodeId, int index)
Definition: ozw.cxx:832
void setValueAsInt32(int nodeId, int index, int32_t val)
Definition: ozw.cxx:612
void optionsCreate(std::string configPath="/etc/openzwave", std::string userConfigDir="", std::string cmdLine="")
Definition: ozw.cxx:123
bool getValueID(int nodeId, int index, OpenZWave::ValueID *vid)
Definition: ozw.cxx:407
void setValueAsBytes(int nodeId, int index, uint8_t *val, uint8_t len)
Definition: ozw.cxx:660
int getValueMin(int nodeId, int index)
Definition: ozw.cxx:721
OZW()
Definition: ozw.cxx:44
bool getValueAsBool(int nodeId, int index)
Definition: ozw.cxx:805
void setDebug(bool enable)
Definition: ozw.cxx:988
bool isValueSet(int nodeId, int index)
Definition: ozw.cxx:777
void setValueAsBool(int nodeId, int index, bool val)
Definition: ozw.cxx:540
bool init(std::string devicePath, bool isHID=false)
Definition: ozw.cxx:155
bool isValuePolled(int nodeId, int index)
Definition: ozw.cxx:791
bool isNodeFrequentListeningDevice(int nodeId)
Definition: ozw.cxx:952
std::string getValueAsString(int nodeId, int index)
Definition: ozw.cxx:442
void setValueAsInt16(int nodeId, int index, int16_t val)
Definition: ozw.cxx:636
void unlockNodes()
Definition: ozw.hpp:575
~OZW()
Definition: ozw.cxx:80
float getValueAsFloat(int nodeId, int index)
Definition: ozw.cxx:859
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
bool isNodeAwake(int nodeId)
Definition: ozw.cxx:964
void setValueHelp(int nodeId, int index, std::string text)
Definition: ozw.cxx:528
void setValueAsFloat(int nodeId, int index, float val)
Definition: ozw.cxx:588
void setValueUnits(int nodeId, int index, std::string text)
Definition: ozw.cxx:474
bool isNodeListeningDevice(int nodeId)
Definition: ozw.cxx:940
void optionsLock()
Definition: ozw.cxx:148
int getValueAsInt16(int nodeId, int index)
Definition: ozw.cxx:913
std::string getValueHelp(int nodeId, int index)
Definition: ozw.cxx:513
void optionAddString(std::string name, std::string val, bool append)
Definition: ozw.cxx:142
int getValueAsInt32(int nodeId, int index)
Definition: ozw.cxx:886
bool isValueReadOnly(int nodeId, int index)
Definition: ozw.cxx:749
void setValueAsString(int nodeId, int index, std::string val)
Definition: ozw.cxx:684
void setValueLabel(int nodeId, int index, std::string text)
Definition: ozw.cxx:501
void refreshValue(int nodeId, int index)
Definition: ozw.cxx:709
bool isInitialized()
Definition: ozw.hpp:528
std::string getValueLabel(int nodeId, int index)
Definition: ozw.cxx:486
void lockNodes()
Definition: ozw.hpp:570
static OZW * instance()
Definition: ozw.cxx:115
int getValueMax(int nodeId, int index)
Definition: ozw.cxx:735
std::string getValueUnits(int nodeId, int index)
Definition: ozw.cxx:459
void optionAddInt(std::string name, int val)
Definition: ozw.cxx:130
void dumpNodes(bool all=false)
Definition: ozw.cxx:349
uint32_t getHomeID()
Definition: ozw.hpp:560
void setValueAsByte(int nodeId, int index, uint8_t val)
Definition: ozw.cxx:564
bool isValueWriteOnly(int nodeId, int index)
Definition: ozw.cxx:763
bool isNodeInfoReceived(int nodeId)
Definition: ozw.cxx:976