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.

31 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __ARGUS_NODE_FACTORY_HEADER__
  2. #define __ARGUS_NODE_FACTORY_HEADER__
  3. #include <vector>
  4. #include "rgooseNode.h"
  5. typedef std::vector<argusNetNode*> vectorNetNodes;
  6. class argusNodeFactory{
  7. private:
  8. basicLogCollection * m_pLog;
  9. ARGUS_DBC * m_pDBC;
  10. uint32_t m_nSiteID;
  11. vectorNetNodes m_vNetNodes;
  12. public:
  13. static argusNodeFactory * getInstance();
  14. virtual ~argusNodeFactory();
  15. argusNetNode * createNode( int id );
  16. void deleteNode( argusNetNode * );
  17. void deleteNode( int id );
  18. bool loadNodes( uint32_t SiteID = 0 );
  19. void setDBC(ARGUS_DBC * tPtr);
  20. void validate( void );
  21. uint32_t getNodeCount( ARGUS_NODE_TYPE type );
  22. uint32_t fetchNodes( ARGUS_NODE_TYPE type, argusNetNode **&RA );
  23. protected:
  24. argusNodeFactory();
  25. private:
  26. static argusNodeFactory * _instance;
  27. };
  28. #endif