Flair
Framework Libre Air
FrameworkManager.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}
13 #ifndef FRAMEWORKMANAGER_H
14 #define FRAMEWORKMANAGER_H
15 
16 #include <Object.h>
17 
18 class FrameworkManager_impl;
19 
20 namespace flair {
21 namespace gui {
22 class TabWidget;
23 class SendData;
24 }
25 }
26 namespace flair {
27 namespace core {
28 class IODevice;
29 
45 class FrameworkManager : public Object {
46 public:
56  FrameworkManager(std::string name);
57 
66 
77  void SetupConnection(std::string address, uint16_t port,
78  size_t rcv_buf_size = 10000);
79 
90  void SetupUserInterface(std::string xml_file);
91 
97  gui::TabWidget *GetTabWidget(void) const;
98 
107  void SetupLogger(std::string log_path);
108 
119  void AddDeviceToLog(IODevice *device);
120 
128  void StartLog(void);
129 
135  void StopLog(void);
136 
142  bool IsLogging(void) const;
143 
153  void UpdateSendData(const gui::SendData *obj);
154 
165  void BlockCom(void);
166 
177  void UnBlockCom(void);
178 
188  bool ConnectionLost(void) const;
189 
198  void DisableErrorsDisplay(bool value);
199 
206  bool IsDisplayingErrors(void) const;
207 
208 private:
209  class FrameworkManager_impl *pimpl_;
210 };
211 
218 
224 bool IsBigEndian(void);
225 
226 } // end namespace core
227 } // end namespace flair
228 
229 #endif // FRAMEWORKMANAGER_H
Base class for all Framework's classes.
Definition: Object.h:77
Abstract class for input/ouput system.
Definition: IODevice.h:44
namespace of the flair Framework
Definition: Ahrs.h:19
void SetupConnection(std::string address, uint16_t port, size_t rcv_buf_size=10000)
Setup the connection with ground station.
bool IsDisplayingErrors(void) const
Is displaying errors?
Main class of the Framework library.
Definition: FrameworkManager.h:45
bool ConnectionLost(void) const
Is connection lost?
bool IsBigEndian(void)
is big endian?
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
void StartLog(void)
Start logging.
FrameworkManager(std::string name)
Constructor.
Base class for all Framework's classes.
void StopLog(void)
Stop logging.
void AddDeviceToLog(IODevice *device)
Add log element.
FrameworkManager * getFrameworkManager(void)
get FrameworkManager
void SetupLogger(std::string log_path)
Logger setup.
void UnBlockCom(void)
Unblock communication.
gui::TabWidget * GetTabWidget(void) const
Get TabWidget.
void DisableErrorsDisplay(bool value)
Disable errors display.
void SetupUserInterface(std::string xml_file)
Setup the user interface.
Abstract class for sending datas to ground station.
Definition: SendData.h:29
void UpdateSendData(const gui::SendData *obj)
Notify that SendData's period has changed.
void BlockCom(void)
Block communication.
bool IsLogging(void) const
Is logging?