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.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __ARGUS_NODE_HEADER__
  2. #define __ARGUS_NODE_HEADER__
  3. #include "../components/base/basicPosition.h"
  4. #include "../components/base/basicObject.h"
  5. #include "rgooseDBConnector.h"
  6. class argusNetNode: public basicObject{
  7. protected:
  8. ARGUS_DBC * m_pDBC;
  9. uint32_t m_nDBID;
  10. DBC_NODE_DATA m_sNodeData;
  11. basicPosition * m_pPosition;
  12. public:
  13. explicit argusNetNode( ARGUS_DBC *DBC, int id );
  14. explicit argusNetNode( ARGUS_DBC *DBC, DBC_NODE_DATA *Data );
  15. virtual ~argusNetNode();
  16. uint32_t getId() const { return m_nDBID;};
  17. ARGUS_NODE_TYPE getType() const { return m_sNodeData.type; };
  18. bool isOnline( void ) const { return m_sNodeData.online; };
  19. virtual bool isDetached() { return true; };
  20. virtual bool isAttached() { return false; };
  21. void setDBC( ARGUS_DBC *tPtr );
  22. virtual bool startService(){ return false; };
  23. virtual bool stopService(){ return true; };
  24. virtual bool validate(){ return false; };
  25. };
  26. #endif