Serveur OPCUA générique
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Macros
cta_slc_elementBase.h
Aller à la documentation de ce fichier.
1 /******************************************************************************
2  **
3  **
4  ** Copyright (C) LAPP. CNRS
5  **
6  ** Project: C++ OPCUA generique
7  **
8  ** Description:
9  **
10  ** Author : Panazol Jean Luc
11  ******************************************************************************/
12 
13 #ifndef CTA_SLC_ELEMENTBASE_H
14 #define CTA_SLC_ELEMENTBASE_H
15 
16 #include <list>
17 #include <string>
18 #include <libxml/parser.h>
19 #include <libxml/xpath.h>
20 #include "cta_ua_nodemanager.h"
21 #include "cta_slc_objectUA.h"
22 #include <vector>
23 
24 namespace CTA_Slc {
25 class XmlManager;
26 }
27 
28 namespace CTA_Slc_Dict {
29 class SimpleDevice;
30 class SimpleDatapoint;
31 class CompoundDatapoint;
32 class Attribut;
33 class CompoundDevice;
34 class SimpleDevice;
35 }
36 
37 namespace CTA_Slc_Dict {
38 
39 class ElementBase {
40 public:
41  ElementBase();
42  ~ElementBase();
43  void parse(std::string res, xmlNodePtr n);
44  void createFolder();
45  void createFolder(int folder);
46  void createNodes();
47  int find(std::string ip, std::string *val_ip, std::string id,
48  std::string *val_id);
49 
50  std::string m_pname;
51  std::string m_parent;
52  std::string m_full;
54  xmlNodePtr m_racine;
55  std::string m_dict;
56  std::string m_type;
57  std::string m_description;
58  std::string m_endDelimiter;
60  std::list<Attribut*> m_info;
61  std::list<Attribut*> m_attribut;
62  std::list<SimpleDatapoint*> m_datapoint;
63  std::list<CompoundDatapoint*> m_compoundDatapoint;
64  std::list<CompoundDevice*> m_compound;
65  std::list<SimpleDevice*> m_device;
66  std::string m_dataIdDescriptorRef;
69  vector<int> m_index;
70 
71 protected:
73 private:
74  OpcUa::BaseObjectType* pObjectType;
75 };
76 
77 } // end namespace
78 #endif // CTA_SLC_ELEMENTBASE_H