#include <WorkspaceObjectWatcher.hpp>
Public Slots | |
void | relationshipChange (int index, Handle newHandle, Handle oldHandle) |
void | removedFromWorkspace (Handle handle) |
Public Slots inherited from openstudio::IdfObjectWatcher | |
void | change () |
void | dataChange () |
void | nameChange () |
Public Member Functions | |
virtual void | clearState () override |
reset relationshipChanged and removedFromWorkspace as well as flags from IdfObjectWatcher More... | |
virtual void | onRelationshipChange (int index, Handle newHandle, Handle oldHandle) |
called each time a pointer field changes if watcher enabled More... | |
virtual void | onRemoveFromWorkspace (Handle handle) |
called when the object is removed from its workspace if watcher enabled More... | |
bool | relationshipChanged () const |
true if a pointer field changed More... | |
bool | removedFromWorkspace () const |
true if the object was removed from its workspace More... | |
WorkspaceObjectWatcher (const WorkspaceObject &workspaceObject) | |
constructor with IdfObject to watch More... | |
virtual | ~WorkspaceObjectWatcher () |
virtual destructor More... | |
Public Member Functions inherited from openstudio::IdfObjectWatcher | |
bool | dataChanged () const |
if dirty, then true if data field changed, false if some other change More... | |
bool | dirty () const |
true if object has changed More... | |
bool | disable () |
void | enable () |
enable the watcher More... | |
bool | enabled () const |
is the watcher currently enabled More... | |
IdfObjectWatcher (const IdfObject &idfObject) | |
constructor with IdfObject to watch More... | |
bool | nameChanged () const |
if dirty, then true if name field changed, false otherwise More... | |
virtual void | onBecomeClean () |
called after dirty transitions from true to false if watcher enabled More... | |
virtual void | onBecomeDirty () |
called after dirty transitions from false to true if watcher enabled More... | |
virtual void | onChangeIdfObject () |
called each time the IdfObject changes if watcher enabled More... | |
virtual void | onDataFieldChange () |
called each time one of the IdfObject's data fields changes if watcher enabled More... | |
virtual void | onNameChange () |
called each time the IdfObject's name changes if watcher enabled More... | |
virtual | ~IdfObjectWatcher () |
virtual destructor More... | |
Protected Attributes | |
bool | m_relationshipChanged |
bool | m_removedFromWorkspace |
Protected Attributes inherited from openstudio::IdfObjectWatcher | |
bool | m_dataChanged |
bool | m_dirty |
bool | m_enabled |
bool | m_nameChanged |
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 |