GME  13
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
CCoreProject Class Reference

#include <CoreProject.h>

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

List of all members.

Public Member Functions

 CCoreProject ()
 ~CCoreProject ()
STDMETHOD() put_Storage (ICoreStorage *p)
STDMETHOD() get_Storage (ICoreStorage **p)
STDMETHOD() get_MetaProject (ICoreMetaProject **p)
STDMETHOD() OpenProject (BSTR connection, ICoreMetaProject *p, VARIANT_BOOL *ro_mode=NULL)
STDMETHOD() CloseProject (VARIANT_BOOL abort=VARIANT_FALSE)
STDMETHOD() SaveProject (BSTR connection=NULL, VARIANT_BOOL keepoldname=VARIANT_FALSE)
STDMETHOD() CreateProject (BSTR connection, ICoreMetaProject *p)
STDMETHOD() DeleteProject (BSTR connection)
STDMETHOD() OpenProject2 (BSTR connection, long pUndoSize, ICoreMetaProject *p, VARIANT_BOOL *ro_mode=NULL)
STDMETHOD() CreateProject2 (BSTR connection, long pUndoSize, ICoreMetaProject *p)
STDMETHOD() get_Object (metaid_type metaid, objid_type objid, ICoreObject **p)
STDMETHOD() GetObjectDisp (metaid_type metaid, objid_type objid, ICoreObject **p)
STDMETHOD() CreateObject (metaid_type metaid, ICoreObject **p)
STDMETHOD() get_RootObject (ICoreObject **p)
STDMETHOD() BeginTransaction (transtype_enum transtype)
STDMETHOD() CommitTransaction (transtype_enum transtype)
STDMETHOD() AbortTransaction (transtype_enum transtype)
STDMETHOD() get_NestedTransactionCount (short *p)
STDMETHOD() UndoTransaction ()
STDMETHOD() RedoTransaction ()
STDMETHOD() FlushUndoQueue ()
STDMETHOD() FlushRedoQueue ()
STDMETHOD() get_UndoQueueSize (short *p)
STDMETHOD() get_RedoQueueSize (short *p)
STDMETHOD() CreateTerritory (ICoreTerritory **p)
STDMETHOD() PushTerritory (ICoreTerritory *p)
STDMETHOD() PopTerritory ()
std::string GetFirstToken (BSTR connection)
void SetStatusFlag (status_type flags)
void ResetStatusFlag (status_type flags)
bool GetStatusFlag (status_type flag) const
bool InTransaction () const NOTHROW
bool InReadTransaction () const NOTHROW
bool InWriteTransaction () const NOTHROW
int GetNestedTrCount () const
void RegisterTransactionItem (CCoreTransactionItem *modified) NOTHROW
void RegisterFinalTrItem (CCoreFinalTrItem *modified) NOTHROW
void RegisterUndoItem (CCoreUndoItem *modified) NOTHROW
void BeginFinalTr ()
void CommitFinalTr (bool undo)
void AbortFinalTr ()
void BeginNestedTr () NOTHROW
void CommitNestedTr () NOTHROW
void AbortNestedTr () NOTHROW
void TryUndoTransaction ()
void TryRedoTransaction ()
void TryDiscardLastItem ()
ICoreStorageGetStorage () const NOTHROW
CCoreMetaProjectGetMetaProject () const NOTHROW
ICoreStorageSetStorageObject (CCoreObject *object)
CCoreObjectFindObject (metaid_type metaid, objid_type objid)
CComObjPtr< CCoreObjectCreateObject (metaid_type metaid, objid_type objid)
CComObjPtr< CCoreObjectGetObject (metaid_type metaid, objid_type objid)
CComObjPtr< CCoreObjectCreateObject (metaid_type metaid)
void RegisterObject (metaid_type metaid, objid_type objid, CCoreObject *object) NOTHROW
void UnregisterObject (metaid_type metaid, objid_type objid) NOTHROW
void CastProject (ICoreProject *project) const
CCoreObjectCastObject (ICoreObject *object) const
CCoreTerritoryCastTerritory (ICoreTerritory *territory) const
CCoreTerritoryGetTerritory () const
void RegisterTerritory (CCoreTerritory *territory) NOTHROW
void UnregisterTerritory (CCoreTerritory *territory) NOTHROW

Protected Types

typedef unsigned int status_type

Protected Member Functions

void setMaxUndoStep (long p_undoSize)

Protected Attributes

CComObjPtr< ICoreStoragestorage
CComObjPtr< CCoreMetaProjectmetaproject
status_type status
transactions_type transactions
finaltr_items_type finaltr_items
undos_type undos
short redo_count
object_lookup_type object_lookup
pushed_territorys_type pushed_territorys
created_territorys_type created_territorys
unsigned long m_maxUndoStep

Detailed Description

Definition at line 59 of file CoreProject.h.


Member Typedef Documentation

typedef unsigned int CCoreProject::status_type [protected]

Definition at line 126 of file CoreProject.h.


Constructor & Destructor Documentation

Definition at line 14 of file CoreProject.cpp.

Definition at line 21 of file CoreProject.cpp.


Member Function Documentation

Definition at line 929 of file CoreProject.cpp.

Definition at line 997 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::AbortTransaction ( transtype_enum  transtype)

Definition at line 425 of file CoreProject.cpp.

Definition at line 843 of file CoreProject.cpp.

Definition at line 973 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::BeginTransaction ( transtype_enum  transtype)

Definition at line 354 of file CoreProject.cpp.

Definition at line 710 of file CoreProject.cpp.

void CCoreProject::CastProject ( ICoreProject project) const

Definition at line 702 of file CoreProject.cpp.

Definition at line 732 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::CloseProject ( VARIANT_BOOL  abort = VARIANT_FALSE)

Definition at line 219 of file CoreProject.cpp.

void CCoreProject::CommitFinalTr ( bool  undo)

Definition at line 862 of file CoreProject.cpp.

Definition at line 1030 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::CommitTransaction ( transtype_enum  transtype)

Definition at line 402 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::CreateObject ( metaid_type  metaid,
ICoreObject **  p 
)

Definition at line 331 of file CoreProject.cpp.

Definition at line 604 of file CoreProject.cpp.

Definition at line 643 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::CreateProject ( BSTR  connection,
ICoreMetaProject p 
)

Definition at line 257 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::CreateProject2 ( BSTR  connection,
long  pUndoSize,
ICoreMetaProject p 
)

Definition at line 251 of file CoreProject.cpp.

Definition at line 537 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::DeleteProject ( BSTR  connection)

Definition at line 298 of file CoreProject.cpp.

Definition at line 585 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::FlushRedoQueue ( )

Definition at line 501 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::FlushUndoQueue ( )

Definition at line 486 of file CoreProject.cpp.

Definition at line 145 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_NestedTransactionCount ( short *  p)

Definition at line 447 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_Object ( metaid_type  metaid,
objid_type  objid,
ICoreObject **  p 
)

Definition at line 308 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_RedoQueueSize ( short *  p)

Definition at line 527 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_RootObject ( ICoreObject **  p)

Definition at line 303 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_Storage ( ICoreStorage **  p)

Definition at line 137 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::get_UndoQueueSize ( short *  p)

Definition at line 516 of file CoreProject.cpp.

Definition at line 156 of file CoreProject.cpp.

Definition at line 179 of file CoreProject.h.

Definition at line 793 of file CoreProject.cpp.

Definition at line 621 of file CoreProject.cpp.

STDMETHOD() CCoreProject::GetObjectDisp ( metaid_type  metaid,
objid_type  objid,
ICoreObject **  p 
) [inline]

Definition at line 97 of file CoreProject.h.

bool CCoreProject::GetStatusFlag ( status_type  flag) const [inline]

Definition at line 145 of file CoreProject.h.

Definition at line 178 of file CoreProject.h.

Definition at line 756 of file CoreProject.cpp.

bool CCoreProject::InReadTransaction ( ) const [inline]

Definition at line 149 of file CoreProject.h.

bool CCoreProject::InTransaction ( ) const [inline]

Definition at line 148 of file CoreProject.h.

bool CCoreProject::InWriteTransaction ( ) const [inline]

Definition at line 151 of file CoreProject.h.

STDMETHODIMP CCoreProject::OpenProject ( BSTR  connection,
ICoreMetaProject p,
VARIANT_BOOL *  ro_mode = NULL 
)

Definition at line 178 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::OpenProject2 ( BSTR  connection,
long  pUndoSize,
ICoreMetaProject p,
VARIANT_BOOL *  ro_mode = NULL 
)

Definition at line 172 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::PopTerritory ( )

Definition at line 572 of file CoreProject.cpp.

Definition at line 556 of file CoreProject.cpp.

STDMETHODIMP CCoreProject::put_Storage ( ICoreStorage p)

Definition at line 36 of file CoreProject.cpp.

Definition at line 472 of file CoreProject.cpp.

Definition at line 816 of file CoreProject.cpp.

void CCoreProject::RegisterObject ( metaid_type  metaid,
objid_type  objid,
CCoreObject object 
)

Definition at line 669 of file CoreProject.cpp.

Definition at line 765 of file CoreProject.cpp.

Definition at line 800 of file CoreProject.cpp.

Definition at line 829 of file CoreProject.cpp.

void CCoreProject::ResetStatusFlag ( status_type  flags) [inline]

Definition at line 144 of file CoreProject.h.

STDMETHODIMP CCoreProject::SaveProject ( BSTR  connection = NULL,
VARIANT_BOOL  keepoldname = VARIANT_FALSE 
)

Definition at line 237 of file CoreProject.cpp.

void CCoreProject::setMaxUndoStep ( long  p_undoSize) [inline, protected]

Definition at line 1342 of file CoreProject.cpp.

void CCoreProject::SetStatusFlag ( status_type  flags) [inline]

Definition at line 143 of file CoreProject.h.

Definition at line 1327 of file CoreProject.cpp.

Definition at line 1206 of file CoreProject.cpp.

Definition at line 1140 of file CoreProject.cpp.

Definition at line 1071 of file CoreProject.cpp.

Definition at line 458 of file CoreProject.cpp.

Definition at line 683 of file CoreProject.cpp.

Definition at line 778 of file CoreProject.cpp.


Member Data Documentation

Definition at line 136 of file CoreProject.h.

Definition at line 130 of file CoreProject.h.

unsigned long CCoreProject::m_maxUndoStep [protected]

Definition at line 138 of file CoreProject.h.

Definition at line 124 of file CoreProject.h.

Definition at line 134 of file CoreProject.h.

Definition at line 135 of file CoreProject.h.

short CCoreProject::redo_count [protected]

Definition at line 132 of file CoreProject.h.

Definition at line 127 of file CoreProject.h.

Definition at line 123 of file CoreProject.h.

Definition at line 129 of file CoreProject.h.

Definition at line 131 of file CoreProject.h.


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