使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "stdafx.h"
#include "MBAbstBaseObj.h"
#include "MBBaseDocObj.h"
 
/************************************************************************/
/*  Îļþ¹ÜÀíÆ÷                                                         */
/************************************************************************/
class AFX_EXT_CLASS CMBBaseDocMgr
    :public CMBAbstBaseObj
{
    DECLARE_DYNAMIC(CMBBaseDocMgr)
public:
    CMBBaseDocMgr(void);
    ~CMBBaseDocMgr(void);
protected:
    CMBBaseDocObjMap   m_mapDocObj;
    CMBBaseDocObjVector  m_vecotrDocObj;
protected:
    bool            AddDocObj(CMBBaseDocObj *pDocObj);             // Ìí¼ÓÊý¾Ý
    bool            RemoveAllDocObj();                             // ÒƳý  
public:
    void            EmptyContainer(  );                            // Çå¿ÕÈÝÆ÷
    bool            GetBaseObjVector( CMBBaseObjVector &vectorObj );  // µÃµ½»ùÀàµÄÊý×é
    void            GetDocObjMap( CMBBaseDocObjMap &mapDocObj);       // µÃµ½map
    void            GetDocObjVector( CMBBaseDocObjVector &vecotrDocObj); // µÃµ½vector
    CMBBaseDocObj*  GetDocObj( CString strID );                    // ²éÕÒ     
    bool            RemoveDocObj( CMBBaseDocObj *pDocInfo );       // ÒƳýÎļþÐÅÏ¢ 
    bool            RemoveDocObj( CString strID );                  // ÒƳýÎļþÐÅÏ¢ 
    int             GetCount();                                    // »ñµÃÎļþÊý
    //void            AttachObjVector( CMBBaseObjVector &objVecotr );     // ÒÀ¸½ÓÚ¶ÔÏóÊý×é
    void            SetAllCheck( bool bCheck );
};