![]() |
helics
3.6.1
|
#include <Translator.hpp>
Inheritance diagram for helics::Translator:Public Member Functions | |
| Translator ()=default | |
| Translator (Federate *ffed, std::string_view translatorName, InterfaceHandle ihandle) | |
| Translator (Core *core, std::string_view translatorName, InterfaceHandle ihandle) | |
| Translator (Core *core, std::string_view translatorName=emptyString) | |
| virtual | ~Translator ()=default |
| Translator (Translator &&trans)=default | |
| Translator (const Translator &trans)=default | |
| Translator & | operator= (Translator &&trans)=default |
| Translator & | operator= (const Translator &trans)=default |
| void | setOperator (std::shared_ptr< TranslatorOperator > operation) |
| virtual const std::string & | getDisplayName () const override |
| virtual void | set (std::string_view property, double val) |
| virtual void | setString (std::string_view property, std::string_view val) |
| void | addPublication (std::string_view target) |
| void | addInputTarget (std::string_view target) |
| void | addSourceEndpoint (std::string_view target) |
| void | addDestinationEndpoint (std::string_view target) |
| void | addSourceFilter (std::string_view filterName) |
| void | addDestinationFilter (std::string_view filterName) |
| void | setTranslatorType (std::int32_t type) |
Public Member Functions inherited from helics::Interface | |
| Interface (Federate *federate, InterfaceHandle hid, std::string_view actName) | |
| Interface (Core *core, InterfaceHandle hid, std::string_view actName) | |
| InterfaceHandle | getHandle () const |
| operator InterfaceHandle () const | |
| bool | isValid () const |
| bool | operator< (const Interface &inp) const |
| bool | operator> (const Interface &inp) const |
| bool | operator== (const Interface &inp) const |
| bool | operator!= (const Interface &inp) const |
| const std::string & | getLocalName () const |
| const std::string & | getName () const |
| const std::string & | getTarget () const |
| void | addSourceTarget (std::string_view newTarget, InterfaceType hint=InterfaceType::UNKNOWN) |
| void | addDestinationTarget (std::string_view newTarget, InterfaceType hint=InterfaceType::UNKNOWN) |
| void | removeTarget (std::string_view targetToRemove) |
| void | addAlias (std::string_view alias) |
| const std::string & | getInfo () const |
| void | setInfo (std::string_view info) |
| void | setTag (std::string_view tag, std::string_view value) |
| const std::string & | getTag (std::string_view tag) const |
| virtual void | setOption (int32_t option, int32_t value=1) |
| virtual int32_t | getOption (int32_t option) const |
| const std::string & | getInjectionType () const |
| const std::string & | getExtractionType () const |
| const std::string & | getInjectionUnits () const |
| const std::string & | getExtractionUnits () const |
| const std::string & | getSourceTargets () const |
| const std::string & | getDestinationTargets () const |
| std::size_t | getSourceTargetCount () const |
| std::size_t | getDestinationTargetCount () const |
| void | close () |
| void | disconnectFromCore () |
Protected Member Functions | |
| void | setTranslatorOperations (std::shared_ptr< TranslatorOperations > translatorOps) |
Protected Attributes | |
| bool | disableAssign = false |
| disable assignment for the object | |
Protected Attributes inherited from helics::Interface | |
| Core * | mCore {nullptr} |
| pointer to the core object | |
| InterfaceHandle | handle {} |
| the id as generated by the Federate | |
| std::string | mName |
| the name or key of the interface | |
Friends | |
| void | addOperations (Translator *translator, TranslatorTypes type) |
class for managing a particular translator
|
default |
default constructor
| helics::Translator::Translator | ( | Federate * | ffed, |
| std::string_view | translatorName, | ||
| InterfaceHandle | ihandle | ||
| ) |
construct from handle and federate
| helics::Translator::Translator | ( | Core * | core, |
| std::string_view | translatorName, | ||
| InterfaceHandle | ihandle | ||
| ) |
construct from handle and core
|
explicit |
construct through a core object
References helics::Interface::handle, helics::Interface::mCore, and helics::Core::registerTranslator().
|
virtualdefault |
virtual destructor
|
default |
copy the translator, a copied translator will point to the same object
|
inline |
add a named filter to an endpoint for all message going to the endpoint
References helics::FILTER.
|
inlineoverridevirtual |
get the display name for an input
the name is the given local name or if empty the name of the target
Implements helics::Interface.
|
default |
copy the translator, a copied translator will point to the same object as the original
|
virtual |
set a property on a translator
| property | the name of the property of the translator to change |
| val | the numerical value of the property |
Referenced by helicsTranslatorSet().
| void helics::Translator::setOperator | ( | std::shared_ptr< TranslatorOperator > | operation | ) |
set a message operator to process the message
References setTranslatorOperations().
Referenced by helics::Federate::setTranslatorOperator().
|
virtual |
set a string property on a translator
| property | the name of the property of the translator to change |
| val | the numerical value of the property |
Referenced by helicsTranslatorSetString().
|
protected |
set a translator operations object
References helics::Interface::handle, helics::Interface::mCore, and helics::Core::setTranslatorOperator().
Referenced by setOperator().
| void helics::Translator::setTranslatorType | ( | std::int32_t | type | ) |
set the type of operations specifying how the translator should operate
References addOperations.
Referenced by helics::Federate::registerGlobalTranslator(), and helics::Federate::registerTranslator().
|
friend |
add a defined operation to a translator
Referenced by setTranslatorType().