GME  13
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes
CCoreObject Class Reference

#include <CoreObject.h>

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

List of all members.

Public Member Functions

 CCoreObject ()
virtual ~CCoreObject ()
STDMETHOD() InterfaceSupportsErrorInfo (REFIID riid)
STDMETHODIMP get_Project (ICoreProject **p)
STDMETHODIMP get_MetaObject (ICoreMetaObject **p)
STDMETHODIMP get_ObjID (objid_type *p)
STDMETHODIMP get_Attribute (attrid_type attrid, ICoreAttribute **p)
STDMETHODIMP GetAttributeDisp (attrid_type attrid, ICoreAttribute **p)
STDMETHODIMP get_Attributes (ICoreAttributes **p)
STDMETHODIMP get_AttributeValue (attrid_type attrid, VARIANT *p)
STDMETHODIMP GetAttributeValueDisp (attrid_type attrid, VARIANT *p)
STDMETHODIMP put_AttributeValue (attrid_type attrid, VARIANT p)
STDMETHODIMP SetAttributeValueDisp (attrid_type attrid, VARIANT p)
STDMETHODIMP get_LoadedAttrValue (attrid_type attrid, VARIANT *p)
STDMETHODIMP GetLoadedAttrValueDisp (attrid_type attrid, VARIANT *p)
STDMETHODIMP get_PreviousAttrValue (attrid_type attrid, VARIANT *p)
STDMETHODIMP GetPreviousAttrValueDisp (attrid_type attrid, VARIANT *p)
STDMETHODIMP get_PeerLockValue (attrid_type attrid, locking_type *p)
STDMETHODIMP GetPeerLockValueDisp (attrid_type attrid, locking_type *p)
STDMETHODIMP SearchCollection (attrid_type coll_attrid, attrid_type search_attrid, VARIANT search_value, ICoreObject **p)
STDMETHODIMP get_IsDeleted (VARIANT_BOOL *p)
STDMETHODIMP Delete ()
STDMETHODIMP Clone (ICoreObject **p)
void CreateAttributes ()
void CreateAggregates ()
void FillAfterCreateObject ()
objid_type GetObjID () const NOTHROW
CCoreProjectGetProject () const NOTHROW
CCoreMetaObjectGetMetaObject () const NOTHROW
metaid_type GetMetaID () const NOTHROW
CCoreAttributeFindAttribute (attrid_type attrid) const NOTHROW
void RegisterAttribute (CCoreAttribute *attribute) NOTHROW
void UnregisterAttribute (CCoreAttribute *attribute) NOTHROW
template<class Functor , class UnwindFunctor >
void GetAttributes (CCoreLockAttribute *lockattribute, Functor &f, UnwindFunctor &uf)
void LoadAttributes (CCoreLockAttribute *lockattribute)
void UnloadAttributes (CCoreLockAttribute *lockattribute) NOTHROW
void SetStatusFlag (status_type flags) NOTHROW
void ResetStatusFlag (status_type flags) NOTHROW
bool GetStatusFlag (status_type flag) const NOTHROW
bool InTransaction () const NOTHROW
bool InWriteTransaction () const NOTHROW
bool IsZombie () const NOTHROW
void SetZombie () NOTHROW
bool IsDirty () const NOTHROW
void SetDirty () NOTHROW
void ResetDirty () NOTHROW
bool HasEmptyPointers () const NOTHROW
bool HasEmptyPointersAndLocks () const NOTHROW
void RegisterFinalTrItem () NOTHROW
virtual void AbortFinalTransaction () NOTHROW
virtual void CommitFinalTransaction ()
virtual void CommitFinalTransactionFinish (bool undo) NOTHROW

Static Public Member Functions

static CComObjPtr< CCoreObjectCreate (CCoreProject *project, metaid_type metaid, objid_type objid)
static HRESULT WINAPI AggregatedInterfaceLookup (void *pvThis, REFIID riid, LPVOID *ppv, DWORD_PTR dw)

Protected Types

typedef core::forward_list
< CCoreAttribute * > 
attributes_type
typedef attributes_type::iterator attributes_iterator
typedef core::forward_list
< CComObjPtr< IUnknown > > 
aggregates_type
typedef aggregates_type::iterator aggregates_iterator
typedef unsigned char status_type

Protected Attributes

CComObjPtr< CCoreProjectproject
CComObjPtr< CCoreMetaObjectmetaobject
objid_type objid
attributes_type attributes
aggregates_type aggregates
status_type status

Detailed Description

Definition at line 20 of file CoreObject.h.


Member Typedef Documentation

typedef aggregates_type::iterator CCoreObject::aggregates_iterator [protected]

Definition at line 88 of file CoreObject.h.

typedef core::forward_list< CComObjPtr<IUnknown> > CCoreObject::aggregates_type [protected]

Definition at line 87 of file CoreObject.h.

typedef attributes_type::iterator CCoreObject::attributes_iterator [protected]

Definition at line 84 of file CoreObject.h.

typedef core::forward_list<CCoreAttribute*> CCoreObject::attributes_type [protected]

Definition at line 83 of file CoreObject.h.

typedef unsigned char CCoreObject::status_type [protected]

Definition at line 91 of file CoreObject.h.


Constructor & Destructor Documentation

Definition at line 14 of file CoreObject.cpp.

Definition at line 57 of file CoreObject.cpp.


Member Function Documentation

Implements CCoreFinalTrItem.

Definition at line 629 of file CoreObject.cpp.

HRESULT CCoreObject::AggregatedInterfaceLookup ( void *  pvThis,
REFIID  riid,
LPVOID *  ppv,
DWORD_PTR  dw 
) [static]

Definition at line 90 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::Clone ( ICoreObject **  p)

Definition at line 322 of file CoreObject.cpp.

Implements CCoreFinalTrItem.

Definition at line 652 of file CoreObject.cpp.

void CCoreObject::CommitFinalTransactionFinish ( bool  undo) [virtual]

Implements CCoreFinalTrItem.

Definition at line 681 of file CoreObject.cpp.

CComObjPtr< CCoreObject > CCoreObject::Create ( CCoreProject project,
metaid_type  metaid,
objid_type  objid 
) [static]

Definition at line 29 of file CoreObject.cpp.

Definition at line 348 of file CoreObject.cpp.

Definition at line 329 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::Delete ( )

Definition at line 283 of file CoreObject.cpp.

Definition at line 373 of file CoreObject.cpp.

Definition at line 390 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_Attribute ( attrid_type  attrid,
ICoreAttribute **  p 
)

Definition at line 148 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_Attributes ( ICoreAttributes **  p)

Definition at line 166 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_AttributeValue ( attrid_type  attrid,
VARIANT *  p 
)

Definition at line 185 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_IsDeleted ( VARIANT_BOOL *  p)

Definition at line 259 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_LoadedAttrValue ( attrid_type  attrid,
VARIANT *  p 
)

Definition at line 211 of file CoreObject.cpp.

Definition at line 127 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_ObjID ( objid_type p)

Definition at line 136 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_PeerLockValue ( attrid_type  attrid,
locking_type p 
)

Definition at line 239 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_PreviousAttrValue ( attrid_type  attrid,
VARIANT *  p 
)

Definition at line 225 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::get_Project ( ICoreProject **  p)

Definition at line 115 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::GetAttributeDisp ( attrid_type  attrid,
ICoreAttribute **  p 
) [inline]

Definition at line 58 of file CoreObject.h.

template<class Functor , class UnwindFunctor >
void CCoreObject::GetAttributes ( CCoreLockAttribute lockattribute,
Functor &  f,
UnwindFunctor &  uf 
)

Definition at line 432 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::GetAttributeValueDisp ( attrid_type  attrid,
VARIANT *  p 
) [inline]

Definition at line 61 of file CoreObject.h.

STDMETHODIMP CCoreObject::GetLoadedAttrValueDisp ( attrid_type  attrid,
VARIANT *  p 
) [inline]

Definition at line 65 of file CoreObject.h.

metaid_type CCoreObject::GetMetaID ( ) const [inline]

Definition at line 107 of file CoreObject.h.

Definition at line 106 of file CoreObject.h.

objid_type CCoreObject::GetObjID ( ) const [inline]

Definition at line 104 of file CoreObject.h.

STDMETHODIMP CCoreObject::GetPeerLockValueDisp ( attrid_type  attrid,
locking_type p 
) [inline]

Definition at line 69 of file CoreObject.h.

STDMETHODIMP CCoreObject::GetPreviousAttrValueDisp ( attrid_type  attrid,
VARIANT *  p 
) [inline]

Definition at line 67 of file CoreObject.h.

Definition at line 105 of file CoreObject.h.

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

Definition at line 127 of file CoreObject.h.

Definition at line 537 of file CoreObject.cpp.

Definition at line 557 of file CoreObject.cpp.

STDMETHOD() CCoreObject::InterfaceSupportsErrorInfo ( REFIID  riid) [inline]

Definition at line 43 of file CoreObject.h.

Definition at line 497 of file CoreObject.cpp.

Definition at line 505 of file CoreObject.cpp.

bool CCoreObject::IsDirty ( ) const [inline]

Definition at line 135 of file CoreObject.h.

bool CCoreObject::IsZombie ( ) const [inline]

Definition at line 132 of file CoreObject.h.

Definition at line 479 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::put_AttributeValue ( attrid_type  attrid,
VARIANT  p 
)

Definition at line 199 of file CoreObject.cpp.

Definition at line 408 of file CoreObject.cpp.

Definition at line 618 of file CoreObject.cpp.

void CCoreObject::ResetDirty ( ) [inline]

Definition at line 137 of file CoreObject.h.

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

Definition at line 126 of file CoreObject.h.

STDMETHODIMP CCoreObject::SearchCollection ( attrid_type  coll_attrid,
attrid_type  search_attrid,
VARIANT  search_value,
ICoreObject **  p 
)

Definition at line 253 of file CoreObject.cpp.

STDMETHODIMP CCoreObject::SetAttributeValueDisp ( attrid_type  attrid,
VARIANT  p 
) [inline]

Definition at line 63 of file CoreObject.h.

void CCoreObject::SetDirty ( ) [inline]

Definition at line 136 of file CoreObject.h.

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

Definition at line 125 of file CoreObject.h.

Definition at line 513 of file CoreObject.cpp.

Definition at line 488 of file CoreObject.cpp.

Definition at line 419 of file CoreObject.cpp.


Member Data Documentation

Definition at line 89 of file CoreObject.h.

Definition at line 85 of file CoreObject.h.

Definition at line 80 of file CoreObject.h.

Definition at line 81 of file CoreObject.h.

Definition at line 79 of file CoreObject.h.

Definition at line 92 of file CoreObject.h.


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