Flair
Framework Libre Air
VrpnClient.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
14 #ifndef VRPNCLIENT_H
15 #define VRPNCLIENT_H
16 
17 #include <Thread.h>
18 
19 namespace flair {
20  namespace core {
21  class SerialPort;
22  }
23  namespace gui {
24  class TabWidget;
25  class Layout;
26  }
27 }
28 
29 class VrpnClient_impl;
30 class VrpnObject_impl;
31 
32 namespace flair {
33 namespace sensor {
40 class VrpnClient : public core::Thread {
41  friend class ::VrpnObject_impl;
42 
43 public:
54  VrpnClient(std::string name,
55  std::string address, uint16_t us_period, uint8_t priority);
56 
67  VrpnClient(std::string name,
68  core::SerialPort *serialport, uint16_t us_period,
69  uint8_t priority);
70 
75  ~VrpnClient();
76 
82  gui::Layout *GetLayout(void) const;
83 
89  gui::TabWidget *GetTabWidget(void) const;
90 
96  bool UseXbee(void) const;
97 
98 private:
105  void Run(void);
106 
107  class VrpnClient_impl *pimpl_;
108 };
109 
116 
117 } // end namespace sensor
118 } // end namespace flair
119 #endif // VRPNCLIENT_H
VrpnClient(std::string name, std::string address, uint16_t us_period, uint8_t priority)
Constructor.
namespace of the flair Framework
Definition: Ahrs.h:19
Base class for serial port.
Definition: SerialPort.h:25
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
Abstract class for a thread.
gui::Layout * GetLayout(void) const
Setup Layout.
Abstract class for a thread.
Definition: Thread.h:38
bool UseXbee(void) const
Is XBee used?
gui::TabWidget * GetTabWidget(void) const
Setup Tab.
VrpnClient * GetVrpnClient(void)
get VrpnClient
Class to connect to a Vrpn server. The Thread is created with the FrameworkManager as parent...
Definition: VrpnClient.h:40