GME  13
Public Types | Public Member Functions | Public Attributes | Friends
CMgaProject Class Reference

#include <MgaProject.h>

Inheritance diagram for CMgaProject:
Inheritance graph
[legend]
Collaboration diagram for CMgaProject:
Collaboration graph
[legend]

List of all members.

Public Types

enum  guidmodes { CLEAN, DIRTY, PENDING, MANUAL }
enum  openmodes { CLOSED = 0, UNCHANGED = 1, CHANGED = 2, CLOSEERROR = 4 }
typedef std::list
< CMgaTerritory * > 
tercoll
typedef std::list< CMgaAddOn * > addoncoll
typedef std::list
< IMgaComponent * > 
compcoll
typedef std::list< CMgaClient * > clientcoll
typedef std::queue< FCOPtrobjcoll
typedef stdext::hash_set
< FCOPtr, FCOPtr_hashfunc
objhash

Public Member Functions

 CMgaProject ()
STDMETHOD() FinalConstruct ()
 ~CMgaProject ()
HRESULT CreateSetupData (BSTR rootname, BSTR paradigmname, VARIANT guid)
STDMETHOD() get_MetaObj (long id, IMgaMetaBase **pVal)
STDMETHOD() GetMetaObjDisp (long id, IMgaMetaBase **pVal)
void OpenParadigm (BSTR s, VARIANT *pGUID)
STDMETHOD() OpenParadigm (BSTR s, BSTR ver)
STDMETHOD() Create (BSTR projectname, BSTR paradigmname)
STDMETHOD() CreateEx (BSTR projectname, BSTR paradigmname, VARIANT parguid)
STDMETHOD() OpenEx (BSTR projectname, BSTR paradigmname, VARIANT paradigmGUID)
STDMETHOD() Open (BSTR projectname, VARIANT_BOOL *ro_mode=NULL)
STDMETHOD() Close (VARIANT_BOOL abort=VARIANT_FALSE)
STDMETHOD() Save (BSTR name=NULL, VARIANT_BOOL keepoldname=VARIANT_FALSE)
STDMETHOD() put_Preferences (long prefmask)
STDMETHOD() put_OperationsMask (long mask)
STDMETHOD() get_Preferences (long *prefmask)
STDMETHOD() get_OperationsMask (long *mask)
STDMETHOD() CheckLocks (BSTR filename, VARIANT_BOOL clearlocks)
STDMETHOD() CreateTerritory (IMgaEventSink *handler, IMgaTerritory **, IMgaEventSink *h2=NULL)
STDMETHOD() CreateTerritoryWithoutSink (IMgaTerritory **)
STDMETHOD() CreateAddOn (IMgaEventSink *handler, IMgaAddOn **)
STDMETHOD() get_ActiveTerritory (IMgaTerritory **aterr)
STDMETHOD() get_Territories (IMgaTerritories **terrs)
STDMETHOD() get_AddOns (IMgaAddOns **addons)
STDMETHOD() get_AddOnComponents (IMgaComponents **comps)
STDMETHOD() EnableAutoAddOns (VARIANT_BOOL bEnable)
STDMETHOD() BeginTransaction (IMgaTerritory *, transactiontype_enum mode)
STDMETHOD() BeginTransactionInNewTerr (transactiontype_enum mode, IMgaTerritory **)
STDMETHOD() AbortTransaction ()
STDMETHOD() get_ProjectStatus (long *stat)
STDMETHOD() CommitTransaction ()
STDMETHOD() CommitNotify ()
STDMETHOD() CheckSupress (VARIANT_BOOL)
STDMETHOD() GlobalNotify (globalevent_enum msg)
STDMETHOD() Notify (globalevent_enum event)
STDMETHOD() Redo ()
STDMETHOD() Undo ()
STDMETHOD() UndoRedoSize (short *undosize, short *redosize)
STDMETHOD() FlushUndoQueue ()
STDMETHOD() UpdateSourceControlInfo (BSTR param)
STDMETHOD() SourceControlActiveUsers ()
STDMETHOD() SourceControlObjectOwner (BSTR p_optionalID)
STDMETHOD() get_RootFolder (IMgaFolder **pVal)
STDMETHOD() get_RootMeta (IMgaMetaProject **pVal)
STDMETHOD() GetStatistics (BSTR *statstr)
STDMETHOD() get_ObjectByPath (BSTR path, IMgaObject **pVal)
STDMETHOD() get_NthObjectByPath (long n_th, BSTR path, IMgaObject **pVal)
STDMETHOD() GetFolderByPath (BSTR path, IMgaFolder **pVal)
STDMETHOD() GetFCOsByName (BSTR name, IMgaFCOs **pVal)
STDMETHOD() GetFCOByID (BSTR id, IMgaFCO **pVal)
STDMETHOD() GetObjectByID (BSTR id, IMgaObject **pVal)
STDMETHOD() EnumExtReferences (IMgaFCOs *fcos, IMgaFCOs **pVal)
STDMETHOD() CreateFilter (IMgaFilter **)
STDMETHOD() AllFCOs (IMgaFilter *, IMgaFCOs **pVal)
STDMETHOD() get_Name (BSTR *pVal)
STDMETHOD() put_Name (BSTR newVal)
STDMETHOD() get_Version (BSTR *pVal)
STDMETHOD() put_Version (BSTR newVal)
STDMETHOD() get_Comment (BSTR *pVal)
STDMETHOD() put_Comment (BSTR newVal)
STDMETHOD() get_Author (BSTR *pVal)
STDMETHOD() put_Author (BSTR pVal)
STDMETHOD() get_ChangeTime (BSTR *pVal)
STDMETHOD() get_CreateTime (BSTR *pVal)
STDMETHOD() get_MetaGUID (VARIANT *pVal)
STDMETHOD() get_MetaVersion (BSTR *pVal)
STDMETHOD() get_MetaName (BSTR *pVal)
STDMETHOD() get_GUID (VARIANT *pVal)
STDMETHOD() put_GUID (VARIANT newVal)
STDMETHOD() get_ProjectConnStr (BSTR *pVal)
STDMETHOD() get_ParadigmConnStr (BSTR *pVal)
STDMETHOD() QueryProjectInfo (BSTR projectname, long *mgaversion, BSTR *paradigmname, BSTR *parversion, VARIANT *paradigmGUID, VARIANT_BOOL *ro_mode)
STDMETHOD() CheckCollection (IMgaFCOs *coll)
STDMETHOD() CheckFolderCollection (IMgaFolders *coll)
STDMETHOD() get_Clients (IMgaClients **clients)
STDMETHOD() RegisterClient (BSTR name, IDispatch *OLEServer, IMgaClient **client)
STDMETHOD() GetClientByName (BSTR name, IMgaClient **client)
STDMETHOD() GetTopLibraries (BSTR name, IMgaFolders **res)
void ObjMark (IMgaObject *s, long mask)
void FixupGUID (bool write=true)
void UpdateMGAVersion (CoreObj &p_dataroot)
void SetNmspaceInMeta ()
CComBSTR getNmspc ()
CComBSTR prefixWNmspc (CComBSTR pKindname)
void StartAutoAddOns ()
void StopAutoAddOns ()
void RemoveClients ()
CComPtr< IMgaMetaBaseFindMetaRef (metaref_type l)
HRESULT pushterr (CMgaTerritory &terr)
HRESULT popterr ()

Public Attributes

ICoreProjectdataproject
int mgaversion
tercoll allterrs
addoncoll alladdons
clientcoll allclients
compcoll autocomps
CComPtr< CMgaTerritorybaseterr
CComPtr< CMgaTerritoryactiveterr
CComPtr< CMgaTerritoryreserveterr
objcoll changedobjs
objcoll notifyobjs
objcoll temporalobjs
objhash deferredchecks
bool checkoff
bool checkofftemporary
long preferences
unsigned long opmask
bool read_only
int guidstat
CComVariant pendingguid
int transactioncount
bool notifyqueueprocessed
int opened
int aurcnt
coreobjhash objstocheck
CComBSTR projconn
CComBSTR parconn

Friends

class Transaction

Detailed Description

Definition at line 17 of file MgaProject.h.


Member Typedef Documentation

Definition at line 186 of file MgaProject.h.

Definition at line 190 of file MgaProject.h.

Definition at line 188 of file MgaProject.h.

typedef std::queue<FCOPtr> CMgaProject::objcoll

Definition at line 198 of file MgaProject.h.

typedef stdext::hash_set<FCOPtr, FCOPtr_hashfunc> CMgaProject::objhash

Definition at line 200 of file MgaProject.h.

Definition at line 184 of file MgaProject.h.


Member Enumeration Documentation

Enumerator:
CLEAN 
DIRTY 
PENDING 
MANUAL 

Definition at line 230 of file MgaProject.h.

Enumerator:
CLOSED 
UNCHANGED 
CHANGED 
CLOSEERROR 

Definition at line 232 of file MgaProject.h.


Constructor & Destructor Documentation

Definition at line 21 of file MgaProject.cpp.

Definition at line 53 of file MgaProject.cpp.


Member Function Documentation

Definition at line 1481 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::AllFCOs ( IMgaFilter filter,
IMgaFCOs **  pVal 
)

Definition at line 741 of file MgaProject.cpp.

Definition at line 1358 of file MgaProject.cpp.

Definition at line 1404 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CheckCollection ( IMgaFCOs *  coll)

Definition at line 1901 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CheckFolderCollection ( IMgaFolders *  coll)

Definition at line 1913 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CheckLocks ( BSTR  filename,
VARIANT_BOOL  clearlocks 
)

Definition at line 2012 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CheckSupress ( VARIANT_BOOL  s)

Definition at line 1521 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Close ( VARIANT_BOOL  abort = VARIANT_FALSE)

Definition at line 633 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CommitNotify ( )

Definition at line 1586 of file MgaProject.cpp.

Definition at line 1422 of file MgaProject.cpp.

STDMETHOD() CMgaProject::Create ( BSTR  projectname,
BSTR  paradigmname 
) [inline]

Definition at line 54 of file MgaProject.h.

STDMETHODIMP CMgaProject::CreateAddOn ( IMgaEventSink handler,
IMgaAddOn **  pp 
)

Definition at line 1126 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CreateEx ( BSTR  projectname,
BSTR  paradigmname,
VARIANT  parguid 
)

Definition at line 196 of file MgaProject.cpp.

HRESULT CMgaProject::CreateFilter ( IMgaFilter **  newfilter)

Definition at line 722 of file MgaProject.cpp.

HRESULT CMgaProject::CreateSetupData ( BSTR  rootname,
BSTR  paradigmname,
VARIANT  guid 
)

Definition at line 94 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::CreateTerritory ( IMgaEventSink handler,
IMgaTerritory **  pp,
IMgaEventSink h2 = NULL 
)

Definition at line 1103 of file MgaProject.cpp.

Definition at line 1122 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::EnableAutoAddOns ( VARIANT_BOOL  bEnable)

Definition at line 1243 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::EnumExtReferences ( IMgaFCOs *  fcos,
IMgaFCOs **  pVal 
)

Definition at line 1024 of file MgaFolder.cpp.

STDMETHODIMP CMgaProject::FinalConstruct ( )

Definition at line 40 of file MgaProject.cpp.

Definition at line 78 of file MgaProject.cpp.

void CMgaProject::FixupGUID ( bool  write = true)

Definition at line 1827 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::FlushUndoQueue ( )

Definition at line 1749 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_ActiveTerritory ( IMgaTerritory **  aterr)

Definition at line 1156 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_AddOnComponents ( IMgaComponents **  comps)

Definition at line 1232 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_AddOns ( IMgaAddOns **  addons)

Definition at line 1163 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Author ( BSTR *  pVal)

Definition at line 868 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_ChangeTime ( BSTR *  pVal)

Definition at line 857 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Clients ( IMgaClients **  clients)

Definition at line 1174 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Comment ( BSTR *  pVal)

Definition at line 994 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_CreateTime ( BSTR *  pVal)

Definition at line 846 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_GUID ( VARIANT *  pVal)

Definition at line 944 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_MetaGUID ( VARIANT *  pVal)

Definition at line 892 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_MetaName ( BSTR *  pVal)

Definition at line 914 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_MetaObj ( long  id,
IMgaMetaBase **  pVal 
)

Definition at line 68 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_MetaVersion ( BSTR *  pVal)

Definition at line 929 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Name ( BSTR *  pVal)

Definition at line 1047 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_NthObjectByPath ( long  n_th,
BSTR  path,
IMgaObject **  pVal 
)

Definition at line 822 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_ObjectByPath ( BSTR  path,
IMgaObject **  pVal 
)

Definition at line 812 of file MgaProject.cpp.

STDMETHOD() CMgaProject::get_OperationsMask ( long *  mask) [inline]

Definition at line 69 of file MgaProject.h.

STDMETHODIMP CMgaProject::get_ParadigmConnStr ( BSTR *  pVal)

Definition at line 1084 of file MgaProject.cpp.

STDMETHOD() CMgaProject::get_Preferences ( long *  prefmask) [inline]

Definition at line 63 of file MgaProject.h.

STDMETHODIMP CMgaProject::get_ProjectConnStr ( BSTR *  pVal)

Definition at line 1074 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_ProjectStatus ( long *  stat)

Definition at line 1343 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_RootFolder ( IMgaFolder **  pVal)

Definition at line 687 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_RootMeta ( IMgaMetaProject **  pVal)

Definition at line 710 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Territories ( IMgaTerritories **  terrs)

Definition at line 1221 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::get_Version ( BSTR *  pVal)

Definition at line 1060 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetClientByName ( BSTR  name,
IMgaClient **  client 
)

Definition at line 1203 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetFCOByID ( BSTR  id,
IMgaFCO **  pVal 
)

Definition at line 758 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetFCOsByName ( BSTR  name,
IMgaFCOs **  pVal 
)

Definition at line 789 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetFolderByPath ( BSTR  path,
IMgaFolder **  pVal 
)

Definition at line 800 of file MgaProject.cpp.

STDMETHOD() CMgaProject::GetMetaObjDisp ( long  id,
IMgaMetaBase **  pVal 
) [inline]

Definition at line 50 of file MgaProject.h.

CComBSTR CMgaProject::getNmspc ( )

Definition at line 1869 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetObjectByID ( BSTR  id,
IMgaObject **  pVal 
)

Definition at line 766 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetStatistics ( BSTR *  statstr)

Definition at line 835 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::GetTopLibraries ( BSTR  name,
IMgaFolders **  res 
)

Definition at line 2050 of file MgaProject.cpp.

Definition at line 1540 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Notify ( globalevent_enum  event)

Definition at line 1571 of file MgaProject.cpp.

void CMgaProject::ObjMark ( IMgaObject s,
long  mask 
)

Definition at line 1823 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Open ( BSTR  projectname,
VARIANT_BOOL *  ro_mode = NULL 
)

Definition at line 419 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::OpenEx ( BSTR  projectname,
BSTR  paradigmname,
VARIANT  paradigmGUID 
)

Definition at line 278 of file MgaProject.cpp.

void CMgaProject::OpenParadigm ( BSTR  s,
VARIANT *  pGUID 
)

Definition at line 143 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::OpenParadigm ( BSTR  s,
BSTR  ver 
)

Definition at line 176 of file MgaProject.cpp.

HRESULT CMgaProject::popterr ( )

Definition at line 1691 of file MgaProject.cpp.

CComBSTR CMgaProject::prefixWNmspc ( CComBSTR  pKindname)

Definition at line 1886 of file MgaProject.cpp.

HRESULT CMgaProject::pushterr ( CMgaTerritory terr)

Definition at line 1683 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::put_Author ( BSTR  pVal)

Definition at line 879 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::put_Comment ( BSTR  newVal)

Definition at line 1005 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::put_GUID ( VARIANT  newVal)

Definition at line 975 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::put_Name ( BSTR  newVal)

Definition at line 1018 of file MgaProject.cpp.

STDMETHOD() CMgaProject::put_OperationsMask ( long  mask) [inline]

Definition at line 62 of file MgaProject.h.

STDMETHOD() CMgaProject::put_Preferences ( long  prefmask) [inline]

Definition at line 61 of file MgaProject.h.

STDMETHODIMP CMgaProject::put_Version ( BSTR  newVal)

Definition at line 1032 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::QueryProjectInfo ( BSTR  projectname,
long *  mgaversion,
BSTR *  paradigmname,
BSTR *  parversion,
VARIANT *  paradigmGUID,
VARIANT_BOOL *  ro_mode 
)

Definition at line 541 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Redo ( )

Definition at line 1720 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::RegisterClient ( BSTR  name,
IDispatch *  OLEServer,
IMgaClient **  client 
)

Definition at line 1185 of file MgaProject.cpp.

Definition at line 1333 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Save ( BSTR  name = NULL,
VARIANT_BOOL  keepoldname = VARIANT_FALSE 
)

Definition at line 588 of file MgaProject.cpp.

Definition at line 1854 of file MgaProject.cpp.

Definition at line 1782 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::SourceControlObjectOwner ( BSTR  p_optionalID)

Definition at line 1802 of file MgaProject.cpp.

Definition at line 1257 of file MgaProject.cpp.

Definition at line 1314 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::Undo ( )

Definition at line 1700 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::UndoRedoSize ( short *  undosize,
short *  redosize 
)

Definition at line 1740 of file MgaProject.cpp.

void CMgaProject::UpdateMGAVersion ( CoreObj p_dataroot)

Definition at line 1844 of file MgaProject.cpp.

STDMETHODIMP CMgaProject::UpdateSourceControlInfo ( BSTR  param)

Definition at line 1761 of file MgaProject.cpp.


Friends And Related Function Documentation

friend class Transaction [friend]

Definition at line 209 of file MgaProject.h.


Member Data Documentation

Definition at line 194 of file MgaProject.h.

Definition at line 187 of file MgaProject.h.

Definition at line 191 of file MgaProject.h.

Definition at line 185 of file MgaProject.h.

Definition at line 237 of file MgaProject.h.

Definition at line 193 of file MgaProject.h.

Definition at line 194 of file MgaProject.h.

Definition at line 199 of file MgaProject.h.

Definition at line 202 of file MgaProject.h.

Definition at line 203 of file MgaProject.h.

Definition at line 148 of file MgaProject.h.

Definition at line 201 of file MgaProject.h.

Definition at line 228 of file MgaProject.h.

Definition at line 182 of file MgaProject.h.

Definition at line 199 of file MgaProject.h.

Definition at line 234 of file MgaProject.h.

Definition at line 238 of file MgaProject.h.

Definition at line 236 of file MgaProject.h.

unsigned long CMgaProject::opmask

Definition at line 225 of file MgaProject.h.

Definition at line 240 of file MgaProject.h.

Definition at line 229 of file MgaProject.h.

Definition at line 224 of file MgaProject.h.

Definition at line 240 of file MgaProject.h.

Definition at line 226 of file MgaProject.h.

Definition at line 194 of file MgaProject.h.

Definition at line 199 of file MgaProject.h.

Definition at line 233 of file MgaProject.h.


The documentation for this class was generated from the following files: