Flair
Framework Libre Air
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties
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 FrameworkManager;
22 class SerialPort;
23 }
24 namespace gui {
25 class TabWidget;
26 class Layout;
27 }
28 }
29 
30 class VrpnClient_impl;
31 class VrpnObject_impl;
32 
33 namespace flair {
34 namespace sensor {
39 class VrpnClient : public core::Thread {
40  friend class ::VrpnObject_impl;
41 
42 public:
54  VrpnClient(const core::FrameworkManager *parent, std::string name,
55  std::string address, uint16_t us_period, uint8_t priority);
56 
68  VrpnClient(const core::FrameworkManager *parent, std::string name,
69  core::SerialPort *serialport, uint16_t us_period,
70  uint8_t priority);
71 
76  ~VrpnClient();
77 
83  gui::Layout *GetLayout(void) const;
84 
90  gui::TabWidget *GetTabWidget(void) const;
91 
97  bool UseXbee(void) const;
98 
99 private:
106  void Run(void);
107 
108  class VrpnClient_impl *pimpl_;
109 };
110 } // end namespace sensor
111 } // end namespace flair
112 #endif // VRPNCLIENT_H
Base class for serial port.
Definition: SerialPort.h:25
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Main class of the Framework library.
Definition: FrameworkManager.h:45
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(const core::FrameworkManager *parent, std::string name, std::string address, uint16_t us_period, uint8_t priority)
Constructor.
Class to connect to a Vrpn server.
Definition: VrpnClient.h:39