Thin facade over eso::uatools::Client, exposing the legacy IComm-shaped OPC UA client API.
More...
#include <opcuaClientWrapper.hpp>
Public Member Functions | |
| OpcuaClientWrapper () | |
| ~OpcuaClientWrapper () | |
| OpcuaClientWrapper (const OpcuaClientWrapper &)=delete | |
| OpcuaClientWrapper & | operator= (const OpcuaClientWrapper &)=delete |
| OpcuaClientWrapper (OpcuaClientWrapper &&)=delete | |
| OpcuaClientWrapper & | operator= (OpcuaClientWrapper &&)=delete |
| void | Connect (const std::string &device, const std::string &address) |
| void | Disconnect () |
| void | Read (ifw::core::protocol::base::VectorVariant ¶ms) |
Read one or more nodes. params[i].second is replaced in-place with the value read from params[i].first. | |
| void | Write (const ifw::core::protocol::base::VectorVariant ¶ms) |
| Write one or more nodes. | |
| void | Rpc (const std::string &obj, const std::string &proc, const ifw::core::protocol::base::VectorVariant ¶ms, ifw::core::protocol::base::Variant &result) |
Call an OPC UA method. result receives the first output argument (typically a short return code in ENVision). | |
Thin facade over eso::uatools::Client, exposing the legacy IComm-shaped OPC UA client API.
Throws std::runtime_error on failure, so callers can keep their existing try { ... } catch (...) { CCFTHROW(...) } idiom unchanged.
The VectorVariant/Variant types in the signatures are the CCF value containers (ifw::core::protocol::base); they are pure data types and carry no OPC UA transport — the transport is entirely ualib.
| ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::OpcuaClientWrapper | ( | ) |
|
default |
|
delete |
|
delete |
| void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Connect | ( | const std::string & | device, |
| const std::string & | address ) |
| void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Disconnect | ( | ) |
|
delete |
|
delete |
| void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Read | ( | ifw::core::protocol::base::VectorVariant & | params | ) |
Read one or more nodes. params[i].second is replaced in-place with the value read from params[i].first.
| void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Rpc | ( | const std::string & | obj, |
| const std::string & | proc, | ||
| const ifw::core::protocol::base::VectorVariant & | params, | ||
| ifw::core::protocol::base::Variant & | result ) |
Call an OPC UA method. result receives the first output argument (typically a short return code in ENVision).
| void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Write | ( | const ifw::core::protocol::base::VectorVariant & | params | ) |
Write one or more nodes.