#include "WorkspaceObjectWatcher.hpp"
Public Slots | |
void | relationshipChange (int index, Handle newHandle, Handle oldHandle) |
void | removedFromWorkspace (Handle handle) |
Public Member Functions | |
virtual void | clearState () override |
virtual void | onRelationshipChange (int index, Handle newHandle, Handle oldHandle) |
virtual void | onRemoveFromWorkspace (Handle handle) |
bool | relationshipChanged () const |
bool | removedFromWorkspace () const |
WorkspaceObjectWatcher (const WorkspaceObject &workspaceObject) | |
virtual | ~WorkspaceObjectWatcher () |
Protected Attributes | |
bool | m_relationshipChanged |
bool | m_removedFromWorkspace |
openstudio::WorkspaceObjectWatcher::WorkspaceObjectWatcher | ( | const WorkspaceObject & | workspaceObject | ) |
constructor with IdfObject to watch
|
virtual |
virtual destructor
|
overridevirtual |
reset relationshipChanged and removedFromWorkspace as well as flags from IdfObjectWatcher
Reimplemented from openstudio::IdfObjectWatcher.
|
virtual |
called each time a pointer field changes if watcher enabled
|
virtual |
called when the object is removed from its workspace if watcher enabled
|
slot |
bool openstudio::WorkspaceObjectWatcher::relationshipChanged | ( | ) | const |
true if a pointer field changed
bool openstudio::WorkspaceObjectWatcher::removedFromWorkspace | ( | ) | const |
true if the object was removed from its workspace
|
slot |
|
protected |
|
protected |