Public Types | Public Member Functions | List of all members
istd::TChangeDelegator< Base > Class Template Reference

Binder of some istd::IChangeable implementation and changing delegator. More...

#include <TChangeDelegator.h>

Inheritance diagram for istd::TChangeDelegator< Base >:
istd::CChangeDelegator istd::IChangeDelegator istd::IChangeable istd::IPolymorphic istd::THierarchicalBase< Base, Interface >

Public Types

typedef Base BaseClass
 
typedef CChangeDelegator BaseClass2
 
- Public Types inherited from istd::CChangeDelegator
typedef istd::IChangeable BaseClass
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 

Public Member Functions

 TChangeDelegator ()
 
 TChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const istd::IChangeable::ChangeSet &changeSet)
 Callback function for end change event. More...
 
- Public Member Functions inherited from istd::CChangeDelegator
 CChangeDelegator ()
 
 CChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void SetSlavePtr (istd::IChangeable *slavePtr)
 Gets the slave object pointer. More...
 
virtual istd::IChangeableGetSlavePtr () const
 Sets the slave object pointer. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state. More...
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 

Detailed Description

template<class Base>
class istd::TChangeDelegator< Base >

Binder of some istd::IChangeable implementation and changing delegator.

See Also
CChangeDelegator

Definition at line 20 of file TChangeDelegator.h.

Member Typedef Documentation

template<class Base>
typedef Base istd::TChangeDelegator< Base >::BaseClass

Definition at line 25 of file TChangeDelegator.h.

template<class Base>
typedef CChangeDelegator istd::TChangeDelegator< Base >::BaseClass2

Definition at line 26 of file TChangeDelegator.h.

Constructor & Destructor Documentation

template<class Base >
istd::TChangeDelegator< Base >::TChangeDelegator ( )

Definition at line 40 of file TChangeDelegator.h.

template<class Base >
istd::TChangeDelegator< Base >::TChangeDelegator ( istd::IChangeable slavePtr)
explicit

Definition at line 46 of file TChangeDelegator.h.

Member Function Documentation

template<class Base >
void istd::TChangeDelegator< Base >::OnBeginChanges ( )
virtual

Callback function for begin change event.

Please note, that in some cases no following OnEndChanges can be called.

Reimplemented from istd::CChangeDelegator.

Definition at line 55 of file TChangeDelegator.h.

template<class Base >
void istd::TChangeDelegator< Base >::OnEndChanges ( const istd::IChangeable::ChangeSet changeSet)
virtual

Callback function for end change event.

Reimplemented from istd::CChangeDelegator.

Definition at line 64 of file TChangeDelegator.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy