OpcUaCanOpen
CANopen OPC-UA server
CanOpenConfigXML.h
Go to the documentation of this file.
1
/******************************************************************************
2
** canopenconfigxml.h
3
**
4
**
5
** Project: C++ OPC Server SDK sample code
6
**
7
** Description: Configuration Address Space for the CANOpen OPC Ua Server.
8
**
9
******************************************************************************/
10
#ifndef CANOPENCONFIGXML_H
11
#define CANOPENCONFIGXML_H
12
13
#include "xmldocument.h"
14
#include "opcua_core.h"
15
#include "opcua_dataitemtype.h"
16
#include "
OpcServer.h
"
17
#include "uaobjecttypes.h"
18
#include "
NmBuildingAutomation.h
"
19
//#include "BuildingAutomationTypeIds.h"
20
21
#include "
CANOpenServerConfig.h
"
22
27
class
CANopenConfigXml
28
{
29
UA_DISABLE_COPY
(
CANopenConfigXml
);
30
public
:
31
32
// CANOpenConfigXml(NmBuildingAutomation *ba, const UaString& sXmlFileName, const UaString& sApplicationPath,Canaccess *cana);
33
39
CANopenConfigXml
(
OpcServer
*
pServer
,UaString &
sXmlFileName
);
42
virtual
~CANopenConfigXml
();
43
49
UaStatus
CreateAddressSpace
();
50
51
/* Save the configuration to the configure file. */
52
53
inline
UaString
sXmlFileName
()
const
{
return
m_sXmlFileName
;}
54
55
private
:
56
// parser variable
57
CanOpenOpcServerConfig::NODETYPE_sequence
vNodeType
;
58
CanOpenOpcServerConfig::CANBUS_sequence
vCanbus
;
59
CanOpenOpcServerConfig::ITEM_sequence
vItem
;
60
CanOpenOpcServerConfig::REGEXPR_sequence
vReg
;
61
62
OpcServer
*
m_pServer
;
63
64
UaString
m_sXmlFileName
;
65
};
66
67
68
#endif // CANOPENCONFIGXML_H
CanOpen
include
CanOpenConfigXML.h
Generated on Fri Sep 11 2020 14:29:50 for OpcUaCanOpen by
1.8.14