ChimeraTK-ApplicationCore
04.01.00
|
#include <ConnectionMaker.h>
Public Member Functions | |
ConnectionMaker (Application &app) | |
void | finalise () |
Finalise the model and register all PVs with the control system adapter. More... | |
void | optimiseUnmappedVariables (const std::set< std::string > &names) |
Execute the optimisation request from the control system adapter (remove unused variables) More... | |
void | connect () |
Realise connections. More... | |
template<typename UserType > | |
boost::shared_ptr< NDRegisterAccessor< UserType > > | createDeviceVariable (VariableNetworkNode const &node) |
Public Member Functions inherited from ChimeraTK::NetworkVisitor | |
NetworkVisitor (Application &app) | |
void | setDebugConnections (bool enable) |
template<typename... Args> | |
void | debug (Args &&... args) |
Additional Inherited Members | |
Protected Types inherited from ChimeraTK::NetworkVisitor | |
template<typename UserType > | |
using | AccessorMap = std::map< std::string, boost::shared_ptr< ChimeraTK::NDRegisterAccessor< UserType > >> |
Protected Member Functions inherited from ChimeraTK::NetworkVisitor | |
NetworkInformation | checkNetwork (Model::ProcessVariableProxy &proxy) |
void | finaliseNetwork (NetworkInformation &net) |
NetworkInformation | checkAndFinaliseNetwork (Model::ProcessVariableProxy &proxy) |
template<typename UserType > | |
void | createProcessVariable (const VariableNetworkNode &node, size_t length, const std::string &unit, const std::string &description, AccessModeFlags flags) |
template<typename... Args> | |
void | debug (Args &&...) |
Protected Attributes inherited from ChimeraTK::NetworkVisitor | |
std::set< std::string > | _triggerNetworks {} |
std::map< std::string, NetworkInformation > | _networks {} |
bool | _debugConnections {false} |
ChimeraTK::TemplateUserTypeMap< AccessorMap > | _decoratedPvImpls |
Application & | _app |
Definition at line 74 of file ConnectionMaker.h.
|
inlineexplicit |
Definition at line 76 of file ConnectionMaker.h.
void ChimeraTK::ConnectionMaker::connect | ( | ) |
Realise connections.
Must be called exactly once after finalise().
Definition at line 373 of file ConnectionMaker.cc.
boost::shared_ptr<NDRegisterAccessor<UserType> > ChimeraTK::ConnectionMaker::createDeviceVariable | ( | VariableNetworkNode const & | node | ) |
void ChimeraTK::ConnectionMaker::finalise | ( | ) |
Finalise the model and register all PVs with the control system adapter.
The connections itself are not yet realised, to allow optimising them with information from the control system adapter.
Must be called exactly once before connect().
Definition at line 327 of file ConnectionMaker.cc.
void ChimeraTK::ConnectionMaker::optimiseUnmappedVariables | ( | const std::set< std::string > & | names | ) |
Execute the optimisation request from the control system adapter (remove unused variables)
Definition at line 894 of file ConnectionMaker.cc.