Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpcUa::UaServer Class Reference

#include <server.h>

Public Member Functions

void AddAddressSpace (const std::string &path)
 load xml addressspace. This is not implemented yet!!! More...
 
ServerOperations CreateServerOperations ()
 Create a server operations object. More...
 
Subscription::SharedPtr CreateSubscription (unsigned int period, SubscriptionHandler &callback)
 Create a subscription objects. More...
 
void EnableEventNotification ()
 Enable event notification on Server node this is necessary if you want to be able to send custom events. More...
 
uint32_t GetNamespaceIndex (std::string uri)
 
Node GetNode (const NodeId &nodeid) const
 Get a specific node by nodeid. More...
 
Node GetNode (const std::string &nodeid) const
 
Node GetNodeFromPath (const std::vector< QualifiedName > &path) const
 Get a node using its browsepath. More...
 
Node GetNodeFromPath (const std::vector< std::string > &path) const
 
Node GetObjectsNode () const
 
Node GetRootNode () const
 helper methods for node you will probably want to access More...
 
Node GetServerNode () const
 
uint32_t RegisterNamespace (std::string uri)
 Register your application namespace. More...
 
void SetEndpoint (const std::string &endpoint)
 set endpoint uri on wich server will listen. opc.tcp://localhost:4841/opcua/server opc.tcp://192.168.1.1:4840/opcua/server opc.tcp://server.freeopca.org:4841/opcua/server More...
 
void SetProductURI (const std::string &uri)
 setup server description More...
 
void SetServerName (const std::string &name)
 
void SetServerURI (const std::string &uri)
 
void Start ()
 Start and Stop server. More...
 
void Stop ()
 
void TriggerEvent (Event event)
 Trigger and event. More...
 
 UaServer ()
 create high level server More...
 
 UaServer (bool debug)
 
 UaServer (const Common::Logger::SharedPtr &logger)
 

Protected Member Functions

void CheckStarted () const
 

Protected Attributes

Common::AddonsManager::SharedPtr Addons
 
std::string Endpoint
 
bool LoadCppAddressSpace = true
 
Common::Logger::SharedPtr Logger
 
std::string Name = "FreeOpcUa Server"
 
std::string ProductUri = "urn:freeopcua.github.no:server"
 
Server::ServicesRegistry::SharedPtr Registry
 
OpcUa::MessageSecurityMode SecurityMode = OpcUa::MessageSecurityMode::None
 
std::string ServerUri = "urn:freeopcua:server"
 
Server::SubscriptionService::SharedPtr SubscriptionService
 
std::vector< std::string > XmlAddressSpaces
 

Detailed Description

Definition at line 15 of file server.h.

Constructor & Destructor Documentation

OpcUa::UaServer::UaServer ( )

create high level server

Definition at line 30 of file server.cpp.

OpcUa::UaServer::UaServer ( bool  debug)
explicit

Definition at line 34 of file server.cpp.

OpcUa::UaServer::UaServer ( const Common::Logger::SharedPtr &  logger)
explicit

Definition at line 51 of file server.cpp.

Member Function Documentation

void OpcUa::UaServer::AddAddressSpace ( const std::string &  path)

load xml addressspace. This is not implemented yet!!!

Definition at line 76 of file server.cpp.

void OpcUa::UaServer::CheckStarted ( ) const
protected

Definition at line 81 of file server.cpp.

ServerOperations OpcUa::UaServer::CreateServerOperations ( )

Create a server operations object.

Definition at line 215 of file server.cpp.

Subscription::SharedPtr OpcUa::UaServer::CreateSubscription ( unsigned int  period,
SubscriptionHandler callback 
)

Create a subscription objects.

Definition at line 207 of file server.cpp.

void OpcUa::UaServer::EnableEventNotification ( )

Enable event notification on Server node this is necessary if you want to be able to send custom events.

Definition at line 194 of file server.cpp.

uint32_t OpcUa::UaServer::GetNamespaceIndex ( std::string  uri)

Definition at line 100 of file server.cpp.

Node OpcUa::UaServer::GetNode ( const NodeId nodeid) const

Get a specific node by nodeid.

Definition at line 156 of file server.cpp.

Node OpcUa::UaServer::GetNode ( const std::string &  nodeid) const

Definition at line 151 of file server.cpp.

Node OpcUa::UaServer::GetNodeFromPath ( const std::vector< QualifiedName > &  path) const

Get a node using its browsepath.

Definition at line 162 of file server.cpp.

Node OpcUa::UaServer::GetNodeFromPath ( const std::vector< std::string > &  path) const

Definition at line 167 of file server.cpp.

Node OpcUa::UaServer::GetObjectsNode ( ) const

Definition at line 184 of file server.cpp.

Node OpcUa::UaServer::GetRootNode ( ) const

helper methods for node you will probably want to access

Definition at line 179 of file server.cpp.

Node OpcUa::UaServer::GetServerNode ( ) const

Definition at line 189 of file server.cpp.

uint32_t OpcUa::UaServer::RegisterNamespace ( std::string  uri)

Register your application namespace.

Definition at line 89 of file server.cpp.

void OpcUa::UaServer::SetEndpoint ( const std::string &  endpoint)

set endpoint uri on wich server will listen. opc.tcp://localhost:4841/opcua/server opc.tcp://192.168.1.1:4840/opcua/server opc.tcp://server.freeopca.org:4841/opcua/server

Definition at line 56 of file server.cpp.

void OpcUa::UaServer::SetProductURI ( const std::string &  uri)

setup server description

Definition at line 61 of file server.cpp.

void OpcUa::UaServer::SetServerName ( const std::string &  name)

Definition at line 71 of file server.cpp.

void OpcUa::UaServer::SetServerURI ( const std::string &  uri)

Definition at line 66 of file server.cpp.

void OpcUa::UaServer::Start ( )

Start and Stop server.

Definition at line 118 of file server.cpp.

void OpcUa::UaServer::Stop ( )

Definition at line 172 of file server.cpp.

void OpcUa::UaServer::TriggerEvent ( Event  event)

Trigger and event.

Definition at line 220 of file server.cpp.

Member Data Documentation

Common::AddonsManager::SharedPtr OpcUa::UaServer::Addons
protected

Definition at line 103 of file server.h.

std::string OpcUa::UaServer::Endpoint
protected

Definition at line 94 of file server.h.

bool OpcUa::UaServer::LoadCppAddressSpace = true
protected

Definition at line 99 of file server.h.

Common::Logger::SharedPtr OpcUa::UaServer::Logger
protected

Definition at line 98 of file server.h.

std::string OpcUa::UaServer::Name = "FreeOpcUa Server"
protected

Definition at line 97 of file server.h.

std::string OpcUa::UaServer::ProductUri = "urn:freeopcua.github.no:server"
protected

Definition at line 96 of file server.h.

Server::ServicesRegistry::SharedPtr OpcUa::UaServer::Registry
protected

Definition at line 104 of file server.h.

OpcUa::MessageSecurityMode OpcUa::UaServer::SecurityMode = OpcUa::MessageSecurityMode::None
protected

Definition at line 100 of file server.h.

std::string OpcUa::UaServer::ServerUri = "urn:freeopcua:server"
protected

Definition at line 95 of file server.h.

Server::SubscriptionService::SharedPtr OpcUa::UaServer::SubscriptionService
protected

Definition at line 105 of file server.h.

std::vector<std::string> OpcUa::UaServer::XmlAddressSpaces
protected

Definition at line 92 of file server.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10