OpcUaCanOpen
CANopen OPC-UA server
OpcServer Class Reference

Main OPC Server object. More...

#include <OpcServer.h>

Inherits UaServerApplication.

Public Member Functions

 OpcServer ()
 Construction. More...
 
 OpcServer (int argc, char *argv[], bool bRunAsService, const UaString &sApplicationName)
 Construction. More...
 
void setDeviceConfig (UaString sDeviceConfig)
 
void setApplicationPathConfig (UaString sApplicationPathConfig)
 
void setAutomationNode (AddressSpace::NmBuildingAutomation *pMyNodeManager)
 
void setTypeCreator (MyNodeManagerNodeSetXmlCreator *pTypeCreator)
 
void setControlInterface (std::shared_ptr< UserDevice::ControlInterface > pControlInterface)
 
virtual ~OpcServer ()
 Destruction. More...
 
virtual OpcUa_DateTime getBuildDate () const
 Get the build date from the static compiled in string. More...
 
void closeInterface ()
 

Protected Member Functions

virtual UaStatus afterStartUp ()
 

Protected Attributes

UaString m_sDeviceConfig
 
UaString m_sAapplicationPath
 
std::shared_ptr< UserDevice::ControlInterfacem_pControlInterface
 

Private Member Functions

 UA_DISABLE_COPY (OpcServer)
 

Private Attributes

OpcServerPrivated
 Connection to control interface. More...
 
AddressSpace::NmBuildingAutomationm_pMyNodeManager
 
MyNodeManagerNodeSetXmlCreatorm_pTypeCreator
 

Detailed Description

Main OPC Server object.

This class is a utility class managing all server SDK modules for common use cases in a simplified way. Enhanced users may replace this class with their own implementation to be able to use derived classes to overwrite SDK functionality.

Definition at line 45 of file OpcServer.h.

Constructor & Destructor Documentation

◆ OpcServer() [1/2]

OpcServer::OpcServer ( )

Construction.

Definition at line 61 of file OpcServer.cpp.

◆ OpcServer() [2/2]

OpcServer::OpcServer ( int  argc,
char *  argv[],
bool  bRunAsService,
const UaString &  sApplicationName 
)

Construction.

Definition at line 67 of file OpcServer.cpp.

◆ ~OpcServer()

OpcServer::~OpcServer ( )
virtual

Destruction.

Definition at line 74 of file OpcServer.cpp.

Member Function Documentation

◆ afterStartUp()

UaStatus OpcServer::afterStartUp ( )
protectedvirtual

Definition at line 87 of file OpcServer.cpp.

◆ closeInterface()

void OpcServer::closeInterface ( )

disconnect of control interface

Definition at line 165 of file OpcServer.cpp.

◆ getBuildDate()

OpcUa_DateTime OpcServer::getBuildDate ( ) const
virtual

Get the build date from the static compiled in string.

Returns
the build date from the static compiled in string.

Definition at line 179 of file OpcServer.cpp.

◆ setApplicationPathConfig()

void OpcServer::setApplicationPathConfig ( UaString  sApplicationPathConfig)
inline

Definition at line 57 of file OpcServer.h.

◆ setAutomationNode()

void OpcServer::setAutomationNode ( AddressSpace::NmBuildingAutomation pMyNodeManager)
inline

Definition at line 61 of file OpcServer.h.

◆ setControlInterface()

void OpcServer::setControlInterface ( std::shared_ptr< UserDevice::ControlInterface pControlInterface)
inline

Definition at line 65 of file OpcServer.h.

◆ setDeviceConfig()

void OpcServer::setDeviceConfig ( UaString  sDeviceConfig)
inline

Definition at line 53 of file OpcServer.h.

◆ setTypeCreator()

void OpcServer::setTypeCreator ( MyNodeManagerNodeSetXmlCreator pTypeCreator)
inline

Definition at line 63 of file OpcServer.h.

◆ UA_DISABLE_COPY()

OpcServer::UA_DISABLE_COPY ( OpcServer  )
private

Member Data Documentation

◆ d

OpcServerPrivate* OpcServer::d
private

Connection to control interface.

Definition at line 83 of file OpcServer.h.

◆ m_pControlInterface

std::shared_ptr<UserDevice::ControlInterface> OpcServer::m_pControlInterface
protected

Definition at line 80 of file OpcServer.h.

◆ m_pMyNodeManager

AddressSpace::NmBuildingAutomation* OpcServer::m_pMyNodeManager
private

Definition at line 84 of file OpcServer.h.

◆ m_pTypeCreator

MyNodeManagerNodeSetXmlCreator* OpcServer::m_pTypeCreator
private

Definition at line 85 of file OpcServer.h.

◆ m_sAapplicationPath

UaString OpcServer::m_sAapplicationPath
protected

Definition at line 77 of file OpcServer.h.

◆ m_sDeviceConfig

UaString OpcServer::m_sDeviceConfig
protected

Definition at line 77 of file OpcServer.h.


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