ServerConfigBasicXml Class Reference

Inheritance diagram for ServerConfigBasicXml:
Collaboration diagram for ServerConfigBasicXml:

List of all members.

Public Member Functions

 ServerConfigBasicXml (const UaString &sXmlFileName, const UaString &sApplicationPath, OpcServerCallback *pOpcServerCallback)
UaStatus startUp (ServerManager *)
UaStatus shutDown ()
SessioncreateSession (OpcUa_Int32 sessionID, const UaNodeId &authenticationToken)
UaStatus logonSessionUser (Session *pSession, UaUserIdentityToken *pUserIdentityToken)

Detailed Description

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


Constructor & Destructor Documentation

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

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.

Member Function Documentation

Session * ServerConfigBasicXml::createSession ( OpcUa_Int32  sessionID,
const UaNodeId authenticationToken 
) [virtual]

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.

Implements ServerConfig.

UaStatus ServerConfigBasicXml::logonSessionUser ( Session pSession,
UaUserIdentityToken pUserIdentityToken 
) [virtual]

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.

Implements ServerConfig.

UaStatus ServerConfigBasicXml::shutDown (  ) [inline, virtual]

Shut down OPC ServerConfig.

Returns:
Error code

Implements ServerConfig.

UaStatus ServerConfigBasicXml::startUp ( ServerManager pServerManager ) [inline, virtual]

Start up OPC ServerConfig.

Returns:
Error code

Implements ServerConfig.


The documentation for this class was generated from the following file:
  • /home/buildbot/work/uasdkcpp/examples/utilities/opcserver.cpp