OpenStudio:airflow
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
openstudio::contam::AirflowElement Class Referenceabstract

#include <PrjAirflowElements.hpp>

+ Inheritance diagram for openstudio::contam::AirflowElement:

Public Member Functions

virtual std::string dataType () const =0
 Returns the element data type.
 
virtual std::string desc () const =0
 Returns the element description.
 
virtual int icon () const =0
 Returns the icon used to represent flow path.
 
virtual std::string name () const =0
 Returns the element name.
 
virtual int nr () const =0
 Returns the element number, in order from 1 to the number of airflow elements.
 
virtual void setDesc (const std::string &desc)=0
 Sets the element description.
 
virtual void setIcon (const int icon)=0
 Sets the icon used to represent flow path.
 
virtual void setName (const std::string &name)=0
 Sets the element name.
 
virtual void setNr (const int nr)=0
 Sets the element number.
 
virtual std::string write ()=0
 Write the object to a string.
 
virtual ~AirflowElement ()=default
 Destroy the object.
 

Static Public Member Functions

static AirflowElementType convertTag (const std::string &tag)
 Convert an input string into an airflow element type enum.
 
static AirflowElementreadElement (Reader &input)
 Read an airflow element from a Reader object.
 

Detailed Description

The AirflowElement object is the base class of all airflow elements.

Constructor & Destructor Documentation

◆ ~AirflowElement()

virtual openstudio::contam::AirflowElement::~AirflowElement ( )
virtualdefault

Destroy the object.

Member Function Documentation

◆ convertTag()

static AirflowElementType openstudio::contam::AirflowElement::convertTag ( const std::string & tag)
static

Convert an input string into an airflow element type enum.

◆ dataType()

virtual std::string openstudio::contam::AirflowElement::dataType ( ) const
pure virtual

◆ desc()

virtual std::string openstudio::contam::AirflowElement::desc ( ) const
pure virtual

◆ icon()

virtual int openstudio::contam::AirflowElement::icon ( ) const
pure virtual

◆ name()

virtual std::string openstudio::contam::AirflowElement::name ( ) const
pure virtual

◆ nr()

virtual int openstudio::contam::AirflowElement::nr ( ) const
pure virtual

◆ readElement()

static AirflowElement * openstudio::contam::AirflowElement::readElement ( Reader & input)
static

Read an airflow element from a Reader object.

◆ setDesc()

virtual void openstudio::contam::AirflowElement::setDesc ( const std::string & desc)
pure virtual

◆ setIcon()

virtual void openstudio::contam::AirflowElement::setIcon ( const int icon)
pure virtual

◆ setName()

virtual void openstudio::contam::AirflowElement::setName ( const std::string & name)
pure virtual

◆ setNr()

virtual void openstudio::contam::AirflowElement::setNr ( const int nr)
pure virtual

◆ write()

virtual std::string openstudio::contam::AirflowElement::write ( )
pure virtual