You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

4 years ago
​
​
​
4 years ago
4 years ago
4 years ago
​
​
​
4 years ago
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
  1. #ifndef __DEVICE_NODE_HEADER__
  2. #define __DEVICE_NODE_HEADER__
  3. #include "../../components/base/basicEngine.h"
  4. #include "cmdNodeConveyor.h"
  5. class deviceNode: public cmdNodeConveyor, public basicEngine{
  6. private:
  7. protected:
  8. basicLogCollection * m_pLog;
  9. dataBinder * m_pDBC;
  10. DBC_NODE_DATA m_sNodeData;
  11. public:
  12. explicit deviceNode( uint32_t id );
  13. explicit deviceNode( DBC_NODE_DATA *Data );
  14. virtual ~deviceNode();
  15. uint32_t getNodeID() const { return m_sNodeData.node_id; };
  16. uint32_t getDeviceID() const { return m_sNodeData.aux_id; };
  17. ARGUS_NODE_TYPE getNodeType() const { return (ARGUS_NODE_TYPE) m_sNodeData.type; };
  18. bool isNodeOnline( void ) const { return m_sNodeData.online; };
  19. virtual bool validate();
  20. };
  21. typedef std::vector<deviceNode*> vectorDeviceNodes;
  22. typedef std::map<uint32_t,deviceNode*> mapDeviceNode2Id;
  23. #endif