Serveur OPCUA générique
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Macros
cta_slc_method.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_METHOD_H
14 #define CTA_SLC_METHOD_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_ua_clientmanager.h"
22 
23 #include <vector>
24 
25 namespace CTA_Slc {
26 class ControllerObject;
27 }
28 
29 namespace CTA_Hardware {
30 
31 }
32 namespace CTA_UA {
33 class ClientManager;
34 
35 }
36 
37 namespace CTA_Slc_Dict {
38 
39 class Method: public ElementBase {
40 public:
41  Method(xmlNodePtr noeud, std::string parent);
42  Method(std::string name, std::string parent);
43  ~Method();
44 
45  void createNodes(CTA_UA::ControllerObject *pControler);
46  void parse();
47  std::string getParent();
48  int getEvent(std::string *name, std::string *message);
49 private:
50  void buildRelatifNode(std::string chaine, std::string &sequenceNode);
51  std::string m_value;
52  std::string m_eventMessage;
53  int m_event;
54  std::string m_deviceInstruction;
55  std::string m_endDelimiter;
56 
57  std::list<Param *> m_param;
58  CTA_UA::ControllerObject *m_pControler;
59  UaMethodGeneric* m_pMethod;
60  CTA_UA::ClientManager *m_pClientManager;
61 };
62 
63 } // end namespace
64 #endif // CTA_SLC_METHOD_H