SCFLoader.h 607 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. using namespace DIOS::Dev::Communication::Detail;
  3. namespace nsSCF = DIOS::Dev::Communication;
  4. namespace DIOS::Dev::Detail::MachineryECOM
  5. {
  6. class SCFLoader
  7. {
  8. public:
  9. SCFLoader();
  10. ~SCFLoader();
  11. public:
  12. static SCFLoader *Instance();
  13. void Initialize(nsSCF::SCF* pSCF);
  14. nsSCF::SCF* GetSCFInstance();
  15. SCFPacket *CreateSingletonSCFPacket(const std::string &name);
  16. void ReleaseSCFPacket(const std::string &name);
  17. private:
  18. private:
  19. static SCFLoader *m_instance;
  20. HMODULE m_DllFileHandle;
  21. nsSCF::SCF *m_SCFInstance;
  22. std::map<std::string, SCFPacket *> m_scfPackets;
  23. };
  24. }