FreeCAD C++
Public Member Functions | List of all members
App::DocumentObserver Class Reference

#include <App/DocumentObserver.h>

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

Public Member Functions

 DocumentObserver ()
 Constructor.
 
void attachDocument (Document *)
 
void detachDocument ()
 

Member Function Documentation

◆ attachDocument()

void App::DocumentObserver::attachDocument ( Document )

Attaches to another document, the old document is not longer observed then.

◆ detachDocument()

void App::DocumentObserver::detachDocument ( )

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