Serveur OPCUA générique
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Macros
cta_slc_deviceCollector.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_DEVICECOLLECTOR_H
14 #define CTA_SLC_DEVICECOLLECTOR_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 <vector>
22 
23 namespace CTA_Hardware {
24 class HardWareInterface;
25 class DataCollector;
26 }
27 class DataSenderReceiver;
28 
29 namespace CTA_Slc_Dict {
30 
32  static InterfaceManager *singleton;
35 public:
36  static InterfaceManager *getInstance();
37  static void kill();
39  DataSenderReceiver *plugins);
40  CTA_Hardware::HardWareInterface* addInterfacePci(std::string host, int port,
41  std::string full, DataSenderReceiver *plugins, int manageInterface);
42  CTA_Hardware::HardWareInterface* addInterfaceUSB(std::string host, int port,
43  std::string full, DataSenderReceiver *plugins, int manageInterface);
45  int port, std::string full, DataSenderReceiver *plugins,
46  int manageInterface);
47  CTA_Hardware::HardWareInterface* addInterfaceTCP(std::string host, int port,
48  std::string full, DataSenderReceiver *plugins, int mode_t,
49  int manageInterface);
50  CTA_Hardware::HardWareInterface* addInterfaceUDP(std::string host, int port,
51  std::string full, DataSenderReceiver *plugins, int mode_t,
52  int manageInterface);
54  int port, std::string full, DataSenderReceiver *plugins, int mode_t,
55  int manageInterface);
56  CTA_Hardware::HardWareInterface* getInterface(std::string host, int port);
57  void start();
58 private:
59  int m_start;
60  std::list<CTA_Hardware::HardWareInterface*> m_listofInterface;
61  std::list<CTA_Hardware::DataCollector*> m_listofInterfaceCollector;
62 };
63 
64 } // end namespace
65 #endif // CTA_SLC_DEVICECOLLECTOR_H