#pragma once #include "stdafx.h" #include "MBAbstBaseObj.h" #include "MBBaseAppObj.h" /************************************************************************/ /* Ó¦ÓÃÐÅÏ¢¹ÜÀíÆ÷ */ /************************************************************************/ class AFX_EXT_CLASS CMBBaseAppMgr : public CMBAbstBaseObj { DECLARE_DYNAMIC(CMBBaseAppMgr) public: CMBBaseAppMgr(void); ~CMBBaseAppMgr(void); protected: CMBBaseAppObjMap m_mapAppObj; CMBBaseAppObjVector m_vectorAppObj; protected: bool AddAppObj(CMBBaseAppObj *pAppObj); // Ìí¼ÓÊý¾Ý bool RemoveAllAppObj(); // ÒÆ³ý public: void EmptyContainer(); // Çå¿ÕÈÝÆ÷ bool GetBaseObjVector( CMBBaseObjVector &vectorObj ); // µÃµ½»ùÀàµÄÊý×é void GetAppObjMap( CMBBaseAppObjMap &mapAppObj); // µÃµ½map void GetAppObjVector( CMBBaseAppObjVector &vectorAppObj); // µÃµ½vector CMBBaseAppObj *GetAppObj( CString strID ); // ²éÕÒ bool HasAppObj( CMBBaseAppObj *pAppObj ); // ²éÕÒ int GetAppCount(); // Ó¦ÓÃÊý };