![]() |
ChimeraTK-ControlSystemAdapter-OPCUAAdapter 04.00.05
|
This class provide the two parts of the OPCUA Adapter. 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. | |
| ~csa_opcua_adapter () | |
| Destructor to stop the running thread, hence it stops the OPC UA server. | |
| boost::shared_ptr< ControlSystemPVManager > const & | getControlSystemManager () const |
| Return the ControlsystemPVManager of the class. | |
| std::shared_ptr< ua_uaadapter > | getUAAdapter () |
| Return the uaadapter, hence the OPC UA server. | |
| const set< string > & | getUnusedVariables () const |
| void | start () |
| Start all objects in single threads for this case only the opc ua server. | |
| void | stop () |
| Stop all objects in single threads for this case only the opc ua server. | |
| bool | isRunning () |
| Checks if the opcua server is still running and return the suitable bool value. | |
| const UA_Logger * | getLogger () |
| Get the adapter logger. | |
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 171 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 175 of file csa_opcua_adapter.cpp.
| const UA_Logger * ChimeraTK::csa_opcua_adapter::getLogger | ( | ) |
Get the adapter logger.
Definition at line 237 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 179 of file csa_opcua_adapter.cpp.
| const set< string > & ChimeraTK::csa_opcua_adapter::getUnusedVariables | ( | ) | const |
Definition at line 233 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 230 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 183 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 220 of file csa_opcua_adapter.cpp.