App::DocumentObserver Class Reference

The DocumentObserver class simplfies the step to write classes that listen to what happens inside a document. More...

#include <DocumentObserver.h>

Inheritance diagram for App::DocumentObserver:
App::DocumentObjectObserver MeshGui::DlgEvaluateMeshImp MeshGui::ViewProviderMeshCurvature ObjectObserver Sandbox::DocumentProtector MeshGui::DockEvaluateMeshImp

List of all members.

Public Member Functions

void attachDocument (Document *)
 Attaches to another document, the old document is not longer observed then.
void detachDocument ()
 Detaches from the current document, the document is not longer observed then.
 DocumentObserver (Document *)
 DocumentObserver ()
 Constructor.
virtual ~DocumentObserver ()

Protected Member Functions

DocumentgetDocument () const

Detailed Description

The DocumentObserver class simplfies the step to write classes that listen to what happens inside a document.

This is very useful for classes that needs to be notified when an observed object has changed.

Author:
Werner Mayer

Definition at line 44 of file DocumentObserver.h.


Constructor & Destructor Documentation

DocumentObserver::DocumentObserver (  ) 
DocumentObserver::DocumentObserver ( Document doc  ) 
DocumentObserver::~DocumentObserver (  )  [virtual]

Definition at line 57 of file DocumentObserver.cpp.

References detachDocument().


Member Function Documentation

void DocumentObserver::attachDocument ( Document doc  ) 
void DocumentObserver::detachDocument (  ) 

Detaches from the current document, the document is not longer observed then.

Definition at line 85 of file DocumentObserver.cpp.

Referenced by attachDocument(), and ~DocumentObserver().

Document * DocumentObserver::getDocument ( void   )  const [protected]

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

Generated on Wed Nov 23 19:01:43 2011 for FreeCAD by  doxygen 1.6.1