Fawkes API  Fawkes Development Version
BatteryMonitorTreeView Class Reference

A treeview that retrieves battery data from the robots over remote blackboard connections and displays those. More...

#include <tools/battery_monitor/battery_monitor_treeview.h>

Inheritance diagram for BatteryMonitorTreeView:

Classes

class  BatteryRecord
 Column record class for the battery monitor treeview. More...
 

Public Member Functions

 BatteryMonitorTreeView (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
 Constructor. More...
 
virtual ~BatteryMonitorTreeView ()
 Destructor. More...
 
void add_host (const char *host)
 Add given host. More...
 
void rem_host (const char *host)
 Remove given host. More...
 

Protected Attributes

BatteryRecord m_battery_record
 Column record object to acces the columns of the storage object. More...
 
Glib::RefPtr< Gtk::ListStore > m_battery_list
 Storage object. More...
 
std::map< std::string, fawkes::BlackBoard * > m_remote_bbs
 Map with remote blackboards: hostname -> remote blackboard. More...
 
std::map< std::string, fawkes::BatteryInterface * > m_battery_interfaces
 Map containing the battery interfaces: hostname -> battery interface. More...
 
std::map< std::string, fawkes::InterfaceDispatcher * > m_interface_dispatcher
 Interface dispatcher for the battery interfaces. More...
 

Detailed Description

A treeview that retrieves battery data from the robots over remote blackboard connections and displays those.

Author
Daniel Beck

Definition at line 39 of file battery_monitor_treeview.h.

Constructor & Destructor Documentation

BatteryMonitorTreeView::BatteryMonitorTreeView ( BaseObjectType *  cobject,
const Glib::RefPtr< Gtk::Builder > &  builder 
)
BatteryMonitorTreeView::~BatteryMonitorTreeView ( )
virtual

Destructor.

Definition at line 92 of file battery_monitor_treeview.cpp.

References m_battery_interfaces, m_interface_dispatcher, and m_remote_bbs.

Member Function Documentation

void BatteryMonitorTreeView::add_host ( const char *  h)
void BatteryMonitorTreeView::rem_host ( const char *  h)

Member Data Documentation

BatteryMonitorTreeView::m_battery_interfaces
protected

Map containing the battery interfaces: hostname -> battery interface.

Definition at line 75 of file battery_monitor_treeview.h.

Referenced by add_host(), rem_host(), and ~BatteryMonitorTreeView().

BatteryMonitorTreeView::m_battery_list
protected

Storage object.

Definition at line 72 of file battery_monitor_treeview.h.

Referenced by BatteryMonitorTreeView().

BatteryMonitorTreeView::m_battery_record
protected

Column record object to acces the columns of the storage object.

Definition at line 71 of file battery_monitor_treeview.h.

Referenced by BatteryMonitorTreeView().

BatteryMonitorTreeView::m_interface_dispatcher
protected

Interface dispatcher for the battery interfaces.

Definition at line 76 of file battery_monitor_treeview.h.

Referenced by rem_host(), and ~BatteryMonitorTreeView().

BatteryMonitorTreeView::m_remote_bbs
protected

Map with remote blackboards: hostname -> remote blackboard.

Definition at line 74 of file battery_monitor_treeview.h.

Referenced by add_host(), rem_host(), and ~BatteryMonitorTreeView().


The documentation for this class was generated from the following files: