Public Member Functions | Protected Member Functions | Protected Attributes
OpcUa::UaServer Class Reference

#include <server.h>

List of all members.

Public Member Functions

void AddAddressSpace (const std::string &path)
 load xml addressspace. This is not implemented yet!!!
ServerOperations CreateServerOperations ()
 Create a server operations object.
std::unique_ptr< SubscriptionCreateSubscription (unsigned int period, SubscriptionHandler &callback)
 Create a subscription objects.
void EnableEventNotification ()
 Enable event notification on Server node this is necessary if you want to be able to send custom events.
uint32_t GetNamespaceIndex (std::string uri)
Node GetNode (const NodeId &nodeid) const
 Get a specific node by nodeid.
Node GetNode (const std::string &nodeid) const
Node GetNodeFromPath (const std::vector< QualifiedName > &path) const
 Get a node using its browsepath.
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
Node GetServerNode () const
uint32_t RegisterNamespace (std::string uri)
 Register your application namespace.
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
void SetProductURI (const std::string &uri)
 setup server description
void SetServerName (const std::string &name)
void SetServerURI (const std::string &uri)
void Start ()
 Start and Stop server.
void Stop ()
void TriggerEvent (Event event)
 Trigger and event.
 UaServer ()
 create high level server
 UaServer (bool debug)

Protected Member Functions

void CheckStarted () const

Protected Attributes

Common::AddonsManager::SharedPtr Addons
bool Debug = false
std::string Endpoint
bool LoadCppAddressSpace = true
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

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.


Member Function Documentation

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

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

Definition at line 59 of file server.cpp.

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

Definition at line 64 of file server.cpp.

Create a server operations object.

Definition at line 196 of file server.cpp.

std::unique_ptr< Subscription > OpcUa::UaServer::CreateSubscription ( unsigned int  period,
SubscriptionHandler callback 
)

Create a subscription objects.

Definition at line 188 of file server.cpp.

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

Definition at line 175 of file server.cpp.

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

Definition at line 83 of file server.cpp.

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

Get a specific node by nodeid.

Definition at line 137 of file server.cpp.

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

Definition at line 132 of file server.cpp.

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

Get a node using its browsepath.

Definition at line 143 of file server.cpp.

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

Definition at line 148 of file server.cpp.

Definition at line 165 of file server.cpp.

helper methods for node you will probably want to access

Definition at line 160 of file server.cpp.

Definition at line 170 of file server.cpp.

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

Register your application namespace.

Definition at line 72 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 39 of file server.cpp.

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

setup server description

Definition at line 44 of file server.cpp.

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

Definition at line 54 of file server.cpp.

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

Definition at line 49 of file server.cpp.

Start and Stop server.

Definition at line 99 of file server.cpp.

Definition at line 153 of file server.cpp.

Trigger and event.

Definition at line 201 of file server.cpp.


Member Data Documentation

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

Definition at line 102 of file server.h.

bool OpcUa::UaServer::Debug = false [protected]

Definition at line 97 of file server.h.

std::string OpcUa::UaServer::Endpoint [protected]

Definition at line 93 of file server.h.

bool OpcUa::UaServer::LoadCppAddressSpace = true [protected]

Definition at line 98 of file server.h.

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

Definition at line 96 of file server.h.

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

Definition at line 95 of file server.h.

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

Definition at line 103 of file server.h.

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

Definition at line 99 of file server.h.

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

Definition at line 94 of file server.h.

Server::SubscriptionService::SharedPtr OpcUa::UaServer::SubscriptionService [protected]

Definition at line 104 of file server.h.

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

Definition at line 91 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 Sat Jun 8 2019 18:25:00