RVC::OBJECTOBSERVER Class Reference

Base RVC observer class. More...

#include <rvc/object.h>

Inheritance diagram for RVC::OBJECTOBSERVER:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 OBJECTOBSERVER (OBJECT &object)
virtual ~OBJECTOBSERVER ()
virtual void OnACLChanged ()
virtual void OnAttach ()
virtual void OnChildClosing (const OBJECT &)
virtual void OnChildCreate (const OBJECT &)
virtual void OnChildDestroying (const OBJECT &)
virtual void OnChildOpen (const OBJECT &)
virtual void OnClose ()
virtual void OnDecendentDescriptorChanged (const OBJECT &)
virtual void OnDescriptorChanged ()
virtual void OnDestroy ()
virtual void OnDetach ()
virtual void OnUndoBegin ()
virtual void OnUndoEnd ()
virtual void OnUndoPossible ()

Protected Member Functions

virtual void OnNotifyRaw (UINT32, void *)

Detailed Description

Base RVC observer class.

Explination: Rather than have specific subjects for specific objects and derived objects, which would cause some confusion as to which subject was being monitored, we placed "the RVC" subject in RVCOBJECT. Hence we have placed a base RVC::OBJECT::OBSERVER class here. Any other classes that need subject/observer behavior need to inherit from OBJECT::OBSERVER and support the OnNotifyRaw() method and classify as private. This allows any derived class to support its own notification plus any parent class notification. In this case, the OBJECT can report Undo and Close notifications.


Constructor & Destructor Documentation

RVC::OBJECTOBSERVER::OBJECTOBSERVER ( OBJECT object  )  [inline, explicit]

Constructor.

Parameters:
object Object to observe
virtual RVC::OBJECTOBSERVER::~OBJECTOBSERVER (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual void RVC::OBJECTOBSERVER::OnACLChanged (  )  [inline, virtual]

Called when the Access Control List has changed for this object.

virtual void RVC::OBJECTOBSERVER::OnAttach (  )  [inline, virtual]

Called when the ctor's 'object' is attached to an actual RVC object.

virtual void RVC::OBJECTOBSERVER::OnChildClosing ( const OBJECT  )  [inline, virtual]

Called when a child object is about to be closed.

virtual void RVC::OBJECTOBSERVER::OnChildCreate ( const OBJECT  )  [inline, virtual]

Called when a child object is created NOTE: If this a component object, Eg: database object, the object that is created is not fully developed and methods for this object should not be used.

virtual void RVC::OBJECTOBSERVER::OnChildDestroying ( const OBJECT  )  [inline, virtual]

Called when a child object is about to be destroyed.

If the object is opened in this method override, then the deletion of the object will fail

virtual void RVC::OBJECTOBSERVER::OnChildOpen ( const OBJECT  )  [inline, virtual]

Called when a child object is opened NOTE: If this a component object, Eg: database object, the object that is opened is not fully developed and methods for this object should not be used.

virtual void RVC::OBJECTOBSERVER::OnClose (  )  [inline, virtual]

Called when the ctor's 'object' is closed.

virtual void RVC::OBJECTOBSERVER::OnDecendentDescriptorChanged ( const OBJECT  )  [inline, virtual]

Called when a decendant object's descriptor has changed.

virtual void RVC::OBJECTOBSERVER::OnDescriptorChanged (  )  [inline, virtual]

Called when the ctor's 'object' descriptor has changed.

virtual void RVC::OBJECTOBSERVER::OnDestroy (  )  [inline, virtual]

Called when the ctor's 'object' is about to be destroyed (the object's dtor is called).

virtual void RVC::OBJECTOBSERVER::OnDetach (  )  [inline, virtual]

Called when the ctor's 'object' is about to be detached from an actual RVC object.

virtual void RVC::OBJECTOBSERVER::OnNotifyRaw ( UINT32  ,
void *   
) [inline, protected, virtual]
virtual void RVC::OBJECTOBSERVER::OnUndoBegin (  )  [inline, virtual]

Called when a 'Undo' operation has begun on the project file.

virtual void RVC::OBJECTOBSERVER::OnUndoEnd (  )  [inline, virtual]

Called when a 'Undo' operation has ended on the project file.

virtual void RVC::OBJECTOBSERVER::OnUndoPossible (  )  [inline, virtual]

Called when a 'Undo' operation is possible on the project file.


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

Generated on Sun Oct 7 21:37:45 2012 for TNTsdk 2012 by  doxygen 1.6.1