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.
|
|
#ifndef __ARGUS_NODE_FACTORY_HEADER__
#define __ARGUS_NODE_FACTORY_HEADER__
#include <vector>
#include <map>
#include "rgooseNode.h"
typedef std::vector<argusNetNode*> vectorNetNodes;typedef std::map<uint32_t,argusNetNode*> mapNode2Id;class argusNodeFactory{ private: basicLogCollection * m_pLog; argusDBC * m_pDBC; uint32_t m_nSiteID; vectorNetNodes m_vNetNodes; mapNode2Id m_mNetNodesIDS; public: static argusNodeFactory * getInstance(); virtual ~argusNodeFactory(); argusNetNode * createNode( uint32_t id ); void deleteNode( argusNetNode *ptr ); void deleteNode( uint32_t id ); uint32_t fetchNodes( ARGUS_NODE_TYPE type, argusNetNode **&RA ); argusNetNode * getNode( uint32_t id ); uint32_t getNodeCount( ARGUS_NODE_TYPE type ); bool loadNodes( uint32_t SiteID = 0 ); void validate( void ); protected: argusNodeFactory(); private: static argusNodeFactory * _instance;};
#endif
|