OpcUaCanOpen
CANopen OPC-UA server
CANopenConfigXml Class Reference

Class to create Address Space. More...

#include <CanOpenConfigXML.h>

Public Member Functions

 CANopenConfigXml (OpcServer *pServer, UaString &sXmlFileName)
 construction. More...
 
virtual ~CANopenConfigXml ()
 destruction More...
 
UaStatus CreateAddressSpace ()
 Load the configuration from the configure file. More...
 
UaString sXmlFileName () const
 

Private Member Functions

 UA_DISABLE_COPY (CANopenConfigXml)
 

Private Attributes

CanOpenOpcServerConfig::NODETYPE_sequence vNodeType
 
CanOpenOpcServerConfig::CANBUS_sequence vCanbus
 
CanOpenOpcServerConfig::ITEM_sequence vItem
 
CanOpenOpcServerConfig::REGEXPR_sequence vReg
 
OpcServerm_pServer
 
UaString m_sXmlFileName
 

Detailed Description

Class to create Address Space.

Definition at line 27 of file CanOpenConfigXML.h.

Constructor & Destructor Documentation

◆ CANopenConfigXml()

CANopenConfigXml::CANopenConfigXml ( OpcServer pServer,
UaString &  sXmlFileName 
)

construction.

Construction.

Parameters
pServeran instance of Server class to create
sXmlFileNamethe name of the configuration file
sXmlFileNamethe file name of the XML file.
pServerthe server to be create the address space

Definition at line 32 of file CanOpenConfigXML.cpp.

◆ ~CANopenConfigXml()

CANopenConfigXml::~CANopenConfigXml ( )
virtual

destruction

Destruction.

Definition at line 39 of file CanOpenConfigXML.cpp.

Member Function Documentation

◆ CreateAddressSpace()

UaStatus CANopenConfigXml::CreateAddressSpace ( )

Load the configuration from the configure file.

Load the configuration from the configure file and generate node managers.

First method called after creation of ServerConfig. Must create all NodeManagers before method startUp is called.

Returns
Error code.

Definition at line 48 of file CanOpenConfigXML.cpp.

◆ sXmlFileName()

UaString CANopenConfigXml::sXmlFileName ( ) const
inline

Definition at line 53 of file CanOpenConfigXML.h.

◆ UA_DISABLE_COPY()

CANopenConfigXml::UA_DISABLE_COPY ( CANopenConfigXml  )
private

Member Data Documentation

◆ m_pServer

OpcServer* CANopenConfigXml::m_pServer
private

Definition at line 62 of file CanOpenConfigXML.h.

◆ m_sXmlFileName

UaString CANopenConfigXml::m_sXmlFileName
private

Definition at line 64 of file CanOpenConfigXML.h.

◆ vCanbus

CanOpenOpcServerConfig::CANBUS_sequence CANopenConfigXml::vCanbus
private

Definition at line 58 of file CanOpenConfigXML.h.

◆ vItem

CanOpenOpcServerConfig::ITEM_sequence CANopenConfigXml::vItem
private

Definition at line 59 of file CanOpenConfigXML.h.

◆ vNodeType

CanOpenOpcServerConfig::NODETYPE_sequence CANopenConfigXml::vNodeType
private

Definition at line 57 of file CanOpenConfigXML.h.

◆ vReg

CanOpenOpcServerConfig::REGEXPR_sequence CANopenConfigXml::vReg
private

Definition at line 60 of file CanOpenConfigXML.h.


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