OpenStudio:modelica
Loading...
Searching...
No Matches
Public Member Functions | List of all members
openstudio::modelica::ConnectClause Class Reference

#include <ModelicaFile.hpp>

Public Member Functions

 ConnectClause ()
 
 ConnectClause (ConnectClause &&other) noexcept
 
 ConnectClause (const ConnectClause &other)
 
bool isValid () const
 Return true if this handle still refers to a live connect clause.
 
ConnectClauseoperator= (ConnectClause &&other) noexcept
 
ConnectClauseoperator= (const ConnectClause &other)
 
void remove ()
 Remove this connect clause from the owning class definition.
 
std::string source () const
 Left-hand side component reference of the connect statement.
 
std::string target () const
 Right-hand side component reference of the connect statement.
 
 ~ConnectClause ()
 

Detailed Description

Represents a single connect(lhs, rhs); statement.

Retrieved objects continue to work after edits while the connect clause exists. If the clause is removed, the next call throws so you know to fetch it again with ClassDefinition::getConnectClauses().

Constructor & Destructor Documentation

◆ ConnectClause() [1/3]

openstudio::modelica::ConnectClause::ConnectClause ( )

◆ ConnectClause() [2/3]

openstudio::modelica::ConnectClause::ConnectClause ( const ConnectClause & other)

◆ ConnectClause() [3/3]

openstudio::modelica::ConnectClause::ConnectClause ( ConnectClause && other)
noexcept

◆ ~ConnectClause()

openstudio::modelica::ConnectClause::~ConnectClause ( )

Member Function Documentation

◆ isValid()

bool openstudio::modelica::ConnectClause::isValid ( ) const

Return true if this handle still refers to a live connect clause.

◆ operator=() [1/2]

ConnectClause & openstudio::modelica::ConnectClause::operator= ( ConnectClause && other)
noexcept

◆ operator=() [2/2]

ConnectClause & openstudio::modelica::ConnectClause::operator= ( const ConnectClause & other)

◆ remove()

void openstudio::modelica::ConnectClause::remove ( )

Remove this connect clause from the owning class definition.

◆ source()

std::string openstudio::modelica::ConnectClause::source ( ) const

Left-hand side component reference of the connect statement.

◆ target()

std::string openstudio::modelica::ConnectClause::target ( ) const

Right-hand side component reference of the connect statement.