status_panel.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_STATUS_PANEL_H_
29 #define LOG_VIEW_STATUS_PANEL_H_
30 
32 #include <log_view/log_store.h>
33 
34 namespace log_view {
35 
36 class StatusPanel : public PanelInterface {
37  public:
38  StatusPanel(int height, int width, int y, int x, LogStorePtr& logs) : PanelInterface(height, width, y, x), logs_(logs) {}
39  virtual ~StatusPanel() {}
40  virtual void refresh();
41 
42  virtual void setConnected(bool connected) { connected_ = connected; }
43  virtual void setRosTime(const ros::Time& time) { ros_time_ = time; }
44  virtual void setSystemTime(const ros::WallTime& time) { system_time_ = time; }
45 
46  protected:
47  bool connected_ = false;
51 };
52 typedef std::shared_ptr<StatusPanel> StatusPanelPtr;
53 
54 } // namespace log_view
55 
56 #endif // LOG_VIEW_STATUS_PANEL_H_
virtual void setRosTime(const ros::Time &time)
Definition: status_panel.h:43
std::shared_ptr< StatusPanel > StatusPanelPtr
Definition: status_panel.h:52
ros::WallTime system_time_
Definition: status_panel.h:49
virtual int width() const
virtual void setConnected(bool connected)
Definition: status_panel.h:42
virtual void refresh()
std::shared_ptr< LogStore > LogStorePtr
Definition: log_store.h:55
StatusPanel(int height, int width, int y, int x, LogStorePtr &logs)
Definition: status_panel.h:38
virtual int y() const
virtual void setSystemTime(const ros::WallTime &time)
Definition: status_panel.h:44
virtual int x() const
virtual int height() const


log_view
Author(s): Marc Alban
autogenerated on Thu Mar 4 2021 03:21:52