![]() |
helics
3.0.1
|
#include <BasicHandleInfo.hpp>
Public Member Functions | |
BasicHandleInfo () noexcept | |
BasicHandleInfo (GlobalFederateId federate_id, InterfaceHandle handle_id, InterfaceType type_of_handle, const std::string &key_name, const std::string &type_name, const std::string &unit_name) | |
InterfaceHandle | getInterfaceHandle () const |
GlobalFederateId | getFederateId () const |
void | setTag (const std::string &tag, const std::string &value) |
const std::string & | getTag (const std::string &tag) const |
const std::pair< std::string, std::string > & | getTagByIndex (size_t index) const |
auto | tagCount () const |
Public Attributes | |
const GlobalHandle | handle {} |
the global federate id for the creator of the handle | |
LocalFederateId | local_fed_id {} |
the local federate id of the handle | |
const InterfaceType | handleType {InterfaceType::UNKNOWN} |
the type of the handle | |
bool | used {false} |
indicator that the handle is being used to link with another federate | |
uint16_t | flags |
flags corresponding to the flags used in ActionMessages +some extra ones More... | |
const std::string | key |
the name of the handle | |
const std::string | type |
the type of data used by the handle | |
const std::string | units |
the units associated with the handle | |
const std::string & | type_in |
the input type of a filter | |
const std::string & | type_out |
the output type of a filter | |
class defining and capturing basic information about a handle
|
inlinenoexcept |
default constructor
|
inline |
construct from the data
|
inline |
extract a global federate id
References helics::GlobalHandle::fed_id, and handle.
Referenced by helics::FilterFederate::destinationProcessMessage(), and helics::FilterFederate::processFilterReturn().
|
inline |
get the interface handle information
References handle, and helics::GlobalHandle::handle.
Referenced by helics::FilterFederate::destinationProcessMessage().
const std::string & helics::BasicHandleInfo::getTag | ( | const std::string & | tag | ) | const |
search for a tag by name
|
inline |
get a tag (key-value pair) by index
void helics::BasicHandleInfo::setTag | ( | const std::string & | tag, |
const std::string & | value | ||
) |
set a tag (key-value pair)
|
inline |
get the number of tags associated with an interface
uint16_t helics::BasicHandleInfo::flags |
flags corresponding to the flags used in ActionMessages +some extra ones