ifw-ccf 6.0.0
 
Loading...
Searching...
No Matches
ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper Class Reference

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
 
OpcuaClientWrapperoperator= (const OpcuaClientWrapper &)=delete
 
 OpcuaClientWrapper (OpcuaClientWrapper &&)=delete
 
OpcuaClientWrapperoperator= (OpcuaClientWrapper &&)=delete
 
void Connect (const std::string &device, const std::string &address)
 
void Disconnect ()
 
void 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 Write (const ifw::core::protocol::base::VectorVariant &params)
 Write one or more nodes.
 
void 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).
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OpcuaClientWrapper() [1/3]

ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::OpcuaClientWrapper ( )

◆ ~OpcuaClientWrapper()

ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::~OpcuaClientWrapper ( )
default

◆ OpcuaClientWrapper() [2/3]

ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::OpcuaClientWrapper ( const OpcuaClientWrapper & )
delete

◆ OpcuaClientWrapper() [3/3]

ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::OpcuaClientWrapper ( OpcuaClientWrapper && )
delete

Member Function Documentation

◆ Connect()

void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Connect ( const std::string & device,
const std::string & address )

◆ Disconnect()

void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Disconnect ( )

◆ operator=() [1/2]

OpcuaClientWrapper & ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::operator= ( const OpcuaClientWrapper & )
delete

◆ operator=() [2/2]

OpcuaClientWrapper & ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::operator= ( OpcuaClientWrapper && )
delete

◆ Read()

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.

◆ Rpc()

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).

◆ Write()

void ifw::ccf::protocols::envision_llnetio::OpcuaClientWrapper::Write ( const ifw::core::protocol::base::VectorVariant & params)

Write one or more nodes.


The documentation for this class was generated from the following files: