ChimeraTK-ControlSystemAdapter-OPCUAAdapter
04.00.01
|
This class provide the two parts of the OPCUA Adapter. First of all the OPCUA server starts with a port number defined in config-file (recommended 16664), following the mapping process start. For this, the ProcessVariable from ControlSystemPVManager will be mapped to the OPCUA Model. During the mapping process also all <additionalNodes> will be mapped in OPC UA Model. More...
#include <csa_opcua_adapter.h>
Public Member Functions | |
csa_opcua_adapter (boost::shared_ptr< ControlSystemPVManager > csManager, string configFile) | |
Constructor for ControlSystemAdapter-OPC-UA-Adapter. More... | |
~csa_opcua_adapter () | |
Destructor to stop the running thread, hence it stops the OPC UA server. More... | |
boost::shared_ptr< ControlSystemPVManager > const & | getControlSystemManager () const |
Return the ControlsystemPVManager of the class. More... | |
std::shared_ptr< ua_uaadapter > | getUAAdapter () |
Return the uaadapter, hence the OPC UA server. More... | |
const set< string > & | getUnusedVariables () const |
void | start () |
Start all objects in single threads for this case only the opc ua server. More... | |
void | stop () |
Stop all objects in single threads for this case only the opc ua server. More... | |
bool | isRunning () |
Checks if the opcua server is still running and return the suitable bool value. More... | |
const UA_Logger * | getLogger () |
Get the adapter logger. More... | |
This class provide the two parts of the OPCUA Adapter. First of all the OPCUA server starts with a port number defined in config-file (recommended 16664), following the mapping process start. For this, the ProcessVariable from ControlSystemPVManager will be mapped to the OPCUA Model. During the mapping process also all <additionalNodes> will be mapped in OPC UA Model.
Definition at line 44 of file csa_opcua_adapter.h.
ChimeraTK::csa_opcua_adapter::csa_opcua_adapter | ( | boost::shared_ptr< ControlSystemPVManager > | csManager, |
string | configFile | ||
) |
Constructor for ControlSystemAdapter-OPC-UA-Adapter.
csManager | Provide the hole PVManager from control-system-adapter to map all processvariable to the OPC UA-Model |
configFile | Define the path to the mapping-file with config and mapping information |
Definition at line 35 of file csa_opcua_adapter.cpp.
ChimeraTK::csa_opcua_adapter::~csa_opcua_adapter | ( | ) |
Destructor to stop the running thread, hence it stops the OPC UA server.
Definition at line 168 of file csa_opcua_adapter.cpp.
boost::shared_ptr< ControlSystemPVManager > const & ChimeraTK::csa_opcua_adapter::getControlSystemManager | ( | ) | const |
Return the ControlsystemPVManager of the class.
Definition at line 172 of file csa_opcua_adapter.cpp.
const UA_Logger * ChimeraTK::csa_opcua_adapter::getLogger | ( | ) |
Get the adapter logger.
Definition at line 233 of file csa_opcua_adapter.cpp.
std::shared_ptr< ua_uaadapter > ChimeraTK::csa_opcua_adapter::getUAAdapter | ( | ) |
Return the uaadapter, hence the OPC UA server.
Definition at line 176 of file csa_opcua_adapter.cpp.
const set< string > & ChimeraTK::csa_opcua_adapter::getUnusedVariables | ( | ) | const |
Definition at line 229 of file csa_opcua_adapter.cpp.
bool ChimeraTK::csa_opcua_adapter::isRunning | ( | ) |
Checks if the opcua server is still running and return the suitable bool value.
Definition at line 226 of file csa_opcua_adapter.cpp.
void ChimeraTK::csa_opcua_adapter::start | ( | ) |
Start all objects in single threads for this case only the opc ua server.
Definition at line 180 of file csa_opcua_adapter.cpp.
void ChimeraTK::csa_opcua_adapter::stop | ( | ) |
Stop all objects in single threads for this case only the opc ua server.
Definition at line 216 of file csa_opcua_adapter.cpp.