Serveur OPCUA générique
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Macros
hardware_serialdatacollector.h
Aller à la documentation de ce fichier.
1 /******************************************************************************
2  ******************************************************************************/
3 #ifndef __HARDWARE_SERIALDATACOLLECTOR_H__
4 #define __HARDWARE_SERIALDATACOLLECTOR_H__
5 
6 #include "nodemanagerroot.h"
7 #include "typedef.h"
8 
9 #include "uabase.h"
10 #include "uastring.h"
11 #include "statuscode.h"
12 #include "uaarraytemplates.h"
13 #include "uathread.h"
14 #include "nodemanagerbase.h"
15 #include "hardware/datacollector.h"
16 
17 #include "string"
18 #include "vector"
19 
20 namespace CTA_UA {
21 class NodeManagerCTA;
22 class ControllerObject;
23 }
24 
25 namespace CTA_Hardware {
26 class HardWareInterface;
27 }
28 
29 namespace CTA_Hardware {
30 
32 public:
33  HardWare_SerialDataCollector(std::string portName, int baudrate);
35 
36 public:
37  std::string getPortName();
38  void setPortName(std::string portName);
39  int getBaudrate();
40  void setBaudrate(int baudrate);
41  void addInterface(HardWare_Serial usbi);
42  void sendData(std::string data);
43  void sendData(Byte* data);
44  void run();
45 private:
46  CTA_Hardware::HardWare_TCP* m_hardwareInterface;
47  std::string m_portName;
48  int m_baudrate;
49 };
50 
51 }
52 #endif //__HARDWARE_SERIALDATACOLLECTOR_H__