OpenStudio:airflow
Loading...
Searching...
No Matches
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()

◆ desc()

◆ icon()

◆ name()

◆ nr()

◆ readElement()

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

Read an airflow element from a Reader object.

◆ setDesc()

◆ setIcon()

◆ setName()

◆ setNr()

◆ write()