OpenStudio:model
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Related Functions | List of all members
openstudio::model::ComponentWatcher Class Reference

#include <ComponentWatcher.hpp>

Public Member Functions

Constructors and Destructors
 ComponentWatcher (ComponentData &componentData)
 
virtual ~ComponentWatcher ()=default
 
 ComponentWatcher (const ComponentWatcher &other)=default
 
 ComponentWatcher (ComponentWatcher &&other)=default
 
ComponentWatcheroperator= (const ComponentWatcher &)=default
 
ComponentWatcheroperator= (ComponentWatcher &&)=default
 
Getters
ComponentData componentData () const
 
Queries
bool operator== (const ComponentWatcher &other)
 
bool operator!= (const ComponentWatcher &other)
 

Related Functions

(Note that these are not member functions.)

using ComponentWatcherVector = std::vector< ComponentWatcher >
 

Detailed Description

ComponentWatcher uses signals and slots to monitor the data associated with a Component.

ComponentWatchers are constructed by Models and Components. They are not for general (public) use. If data changes, ComponentWatcher calls componentData.createVersionUUID. The Component is destroyed (ComponentData is removed from the model) if the user removes ComponentData or the primary object, or if the relationship between objects in the component changes.

Constructor & Destructor Documentation

openstudio::model::ComponentWatcher::ComponentWatcher ( ComponentData componentData)
virtual openstudio::model::ComponentWatcher::~ComponentWatcher ( )
virtualdefault
openstudio::model::ComponentWatcher::ComponentWatcher ( const ComponentWatcher other)
default
openstudio::model::ComponentWatcher::ComponentWatcher ( ComponentWatcher &&  other)
default

Member Function Documentation

ComponentData openstudio::model::ComponentWatcher::componentData ( ) const
bool openstudio::model::ComponentWatcher::operator!= ( const ComponentWatcher other)
ComponentWatcher& openstudio::model::ComponentWatcher::operator= ( const ComponentWatcher )
default
ComponentWatcher& openstudio::model::ComponentWatcher::operator= ( ComponentWatcher &&  )
default
bool openstudio::model::ComponentWatcher::operator== ( const ComponentWatcher other)

Friends And Related Function Documentation

using ComponentWatcherVector = std::vector<ComponentWatcher>
related