uatools 1.0.0-pre2
 
Loading...
Searching...
No Matches
eso::uatools::OpcuaConnectionRegistry Class Reference

Process-wide map of shared connections. More...

Public Member Functions

std::shared_ptr< OpcuaConnectionAcquire (const std::string &endpoint, const std::string &username)
 

Static Public Member Functions

static OpcuaConnectionRegistryInstance ()
 

Detailed Description

Process-wide map of shared connections.

Keyed by endpoint|username. Holds weak_ptrs so that the connection is released as soon as its last attached Client goes away. Acquire() either bumps the existing shared_ptr or creates a new connection.

Member Function Documentation

◆ Acquire()

std::shared_ptr< OpcuaConnection > eso::uatools::OpcuaConnectionRegistry::Acquire ( const std::string & endpoint,
const std::string & username )
inline

◆ Instance()

static OpcuaConnectionRegistry & eso::uatools::OpcuaConnectionRegistry::Instance ( )
inlinestatic

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