OpcUaCanOpen
CANopen OPC-UA server
ServerConfigBasicXml Class Reference

Basic server configuration class using the XML file format for internal use in the class OpcServer. More...

Inherits ServerConfigXml.

Public Member Functions

 ServerConfigBasicXml (const UaString &sXmlFileName, const UaString &sApplicationPath, OpcServerCallback *pOpcServerCallback)
 construction More...
 
 ~ServerConfigBasicXml ()
 
UaStatus afterLoadConfiguration ()
 
UaStatus startUp (ServerManager *)
 
UaStatus shutDown ()
 
Session * createSession (OpcUa_Int32 sessionID, const UaNodeId &authenticationToken)
 Creates a session object for the OPC server. More...
 
UaStatus logonSessionUser (Session *pSession, UaUserIdentityToken *pUserIdentityToken)
 Validates the user identity token and sets the user for a session. More...
 

Private Attributes

OpcServerCallback * m_pOpcServerCallback
 

Detailed Description

Basic server configuration class using the XML file format for internal use in the class OpcServer.

Definition at line 24 of file OpcServer.cxx.

Constructor & Destructor Documentation

◆ ServerConfigBasicXml()

ServerConfigBasicXml::ServerConfigBasicXml ( const UaString &  sXmlFileName,
const UaString &  sApplicationPath,
OpcServerCallback *  pOpcServerCallback 
)

construction

Parameters
sIniFileNamePath and file name of the INI configuration file.
sApplicationPathThe path of the configuration file and PKI store used to replace path placeholders in the configuration file
pOpcServerCallbackInterface pointer of the callback interface.Creates a session object for the OPC server.
sessionIDSession Id created by the server application.
authenticationTokenSecret session Id created by the server application.
Returns
A pointer to the created session.Validates the user identity token and sets the user for a session.
Parameters
pSessionInterface to the Session context for the method call
pUserIdentityTokenSecret session Id created by the server application.
Returns
Error code. construction
Parameters
sXmlFileNamePath and file name of the XML configuration file.
sApplicationPathThe path of the configuration file and PKI store used to replace path placeholders in the configuration file
pOpcServerCallbackInterface pointer of the callback interface.

Definition at line 518 of file OpcServer.cxx.

◆ ~ServerConfigBasicXml()

ServerConfigBasicXml::~ServerConfigBasicXml ( )
inline

Definition at line 28 of file OpcServer.cxx.

Member Function Documentation

◆ afterLoadConfiguration()

UaStatus ServerConfigBasicXml::afterLoadConfiguration ( )
inline

Definition at line 29 of file OpcServer.cxx.

◆ createSession()

Session * ServerConfigBasicXml::createSession ( OpcUa_Int32  sessionID,
const UaNodeId &  authenticationToken 
)

Creates a session object for the OPC server.

Parameters
sessionIDSession Id created by the server application.
authenticationTokenSecret session Id created by the server application.
Returns
A pointer to the created session.

Definition at line 530 of file OpcServer.cxx.

◆ logonSessionUser()

UaStatus ServerConfigBasicXml::logonSessionUser ( Session *  pSession,
UaUserIdentityToken *  pUserIdentityToken 
)

Validates the user identity token and sets the user for a session.

Parameters
pSessionInterface to the Session context for the method call
pUserIdentityTokenSecret session Id created by the server application.
Returns
Error code.

Definition at line 547 of file OpcServer.cxx.

◆ shutDown()

UaStatus ServerConfigBasicXml::shutDown ( )
inline

Definition at line 31 of file OpcServer.cxx.

◆ startUp()

UaStatus ServerConfigBasicXml::startUp ( ServerManager *  )
inline

Definition at line 30 of file OpcServer.cxx.

Member Data Documentation

◆ m_pOpcServerCallback

OpcServerCallback* ServerConfigBasicXml::m_pOpcServerCallback
private

Definition at line 35 of file OpcServer.cxx.


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