#include <server.h>
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< Subscription > | CreateSubscription (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 |
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.
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.
Node OpcUa::UaServer::GetObjectsNode | ( | ) | const |
Definition at line 165 of file server.cpp.
Node OpcUa::UaServer::GetRootNode | ( | ) | const |
helper methods for node you will probably want to access
Definition at line 160 of file server.cpp.
Node OpcUa::UaServer::GetServerNode | ( | ) | const |
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.
void OpcUa::UaServer::Start | ( | ) |
Start and Stop server.
Definition at line 99 of file server.cpp.
void OpcUa::UaServer::Stop | ( | ) |
Definition at line 153 of file server.cpp.
void OpcUa::UaServer::TriggerEvent | ( | Event | event | ) |
Trigger and event.
Definition at line 201 of file server.cpp.
Common::AddonsManager::SharedPtr OpcUa::UaServer::Addons [protected] |
bool OpcUa::UaServer::Debug = false [protected] |
std::string OpcUa::UaServer::Endpoint [protected] |
bool OpcUa::UaServer::LoadCppAddressSpace = true [protected] |
std::string OpcUa::UaServer::Name = "FreeOpcUa Server" [protected] |
std::string OpcUa::UaServer::ProductUri = "urn:freeopcua.github.no:server" [protected] |
Server::ServicesRegistry::SharedPtr OpcUa::UaServer::Registry [protected] |
OpcUa::MessageSecurityMode OpcUa::UaServer::SecurityMode = OpcUa::MessageSecurityMode::None [protected] |
std::string OpcUa::UaServer::ServerUri = "urn:freeopcua:server" [protected] |
Server::SubscriptionService::SharedPtr OpcUa::UaServer::SubscriptionService [protected] |
std::vector<std::string> OpcUa::UaServer::XmlAddressSpaces [protected] |