Hopsan
AliasHandler Class Reference

Public Member Functions

 AliasHandler (ComponentSystem *pSystem)
 
HString getVariableAlias (const HString &rCompName, const HString &rPortName, const HString &rVarName)
 
bool setVariableAlias (const HString &rAlias, const HString &rCompName, const HString &rPortName, const HString &rVarName)
 
bool setVariableAlias (const HString &rAlias, const HString &rCompName, const HString &rPortName, const int varId)
 
bool setParameterAlias (const HString &rAlias, const HString &rCompName, const HString &rParameterName)
 
void componentRenamed (const HString &rOldCompName, const HString &rNewCompName)
 
void portRenamed (const HString &rCompName, const HString &rOldPortName, const HString &rNewPortName)
 
void componentRemoved (const HString &rCompName)
 
void portRemoved (const HString &rCompName, const HString &rPortName)
 
bool hasAlias (const HString &rAlias)
 
bool removeAlias (const HString &rAlias)
 
std::vector< HStringgetAliases () const
 
void getVariableFromAlias (const HString &rAlias, HString &rCompName, HString &rPortName, int &rVarId)
 
void getVariableFromAlias (const HString &rAlias, HString &rCompName, HString &rPortName, HString &rVarName)
 
void getParameterFromAlias (const HString &rAlias, HString &rCompName, HString &rParameterName)
 

Member Function Documentation

◆ setVariableAlias() [1/2]

bool setVariableAlias ( const HString & rAlias,
const HString & rCompName,
const HString & rPortName,
const HString & rVarName )

◆ setVariableAlias() [2/2]

bool setVariableAlias ( const HString & rAlias,
const HString & rCompName,
const HString & rPortName,
const int varId )