使用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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "StdAfx.h"
#include "MBAppInfo.h"
 
 
 
IMPLEMENT_DYNAMIC(CMBAppInfo, CMBBaseAppObj)
 
CMBAppInfo::CMBAppInfo()
{
    m_pCabinetMgr     = new CMBCabinetMgr();  
}
 
CMBAppInfo::~CMBAppInfo()
{
    if( m_pCabinetMgr )
    {
        delete m_pCabinetMgr;
        m_pCabinetMgr = NULL;
    } 
}
  
CMBBaseCatalogObj  *CMBAppInfo::GetCatalogObj( CString strCabinetID,CString strCatalogID )
{
    if(strCabinetID.IsEmpty() )
        return NULL;
    if( strCatalogID.IsEmpty() )
        return NULL;
 
    CMBCabinetInfo *pCabinetInfo = m_pCabinetMgr->GetCabinetInfo( strCabinetID );
    if( NULL == pCabinetInfo )
        return NULL;
     
    return pCabinetInfo->GetCatalogMgr()->DeepFindCatalogObj( strCatalogID );  
}
 
CMBBaseCabinetObj  *CMBAppInfo::GetCabinetObj( CString strCabinetID )
{
    CMBCabinetInfo *pCabinetInfo = m_pCabinetMgr->GetCabinetInfo( strCabinetID );
    if( NULL == pCabinetInfo )
        return NULL;
    return pCabinetInfo;
}
 
CMBCabinetMgr *CMBAppInfo::GetCabinetMgr()
{
    return m_pCabinetMgr;
}