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>

List of all members.

Public Member Functions

 BatteryMonitorTreeView (BaseObjectType *cobject, const Glib::RefPtr< Gnome::Glade::Xml > &ref_xml)
 Constructor.
virtual ~BatteryMonitorTreeView ()
 Destructor.
void add_host (const char *host)
 Add given host.
void rem_host (const char *host)
 Remove given host.

Protected Attributes

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

Classes

class  BatteryRecord
 Column record class for the battery monitor treeview. 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 40 of file battery_monitor_treeview.h.


Constructor & Destructor Documentation

BatteryMonitorTreeView::BatteryMonitorTreeView ( BaseObjectType *  cobject,
const Glib::RefPtr< Gnome::Glade::Xml > &  ref_xml 
)

Constructor.

Parameters:
cobject base object type
ref_xml Glade XML object

Definition at line 70 of file battery_monitor_treeview.cpp.

References BatteryMonitorTreeView::BatteryRecord::absolute_soc, BatteryMonitorTreeView::BatteryRecord::current, m_battery_list, m_battery_record, BatteryMonitorTreeView::BatteryRecord::relative_soc, BatteryMonitorTreeView::BatteryRecord::short_name, and BatteryMonitorTreeView::BatteryRecord::voltage.

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  ) 

Add given host.

Parameters:
h the host's hostname

Definition at line 135 of file battery_monitor_treeview.cpp.

References fawkes::Exception::append(), m_battery_interfaces, m_remote_bbs, fawkes::BlackBoard::open_for_reading(), fawkes::Exception::print_trace(), and fawkes::BlackBoard::register_listener().

Referenced by BatteryMonitor::service_added().

void BatteryMonitorTreeView::rem_host ( const char *  h  ) 

Remove given host.

Parameters:
h the host's hostname

Definition at line 196 of file battery_monitor_treeview.cpp.

References fawkes::Exception::append(), m_battery_interfaces, m_interface_dispatcher, m_remote_bbs, and fawkes::Exception::print_trace().

Referenced by BatteryMonitor::service_removed().


Member Data Documentation

BatteryMonitorTreeView::m_battery_interfaces [protected]

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

Definition at line 76 of file battery_monitor_treeview.h.

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

BatteryMonitorTreeView::m_battery_list [protected]

Storage object.

Definition at line 73 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 72 of file battery_monitor_treeview.h.

Referenced by BatteryMonitorTreeView().

BatteryMonitorTreeView::m_interface_dispatcher [protected]

Interface dispatcher for the battery interfaces.

Definition at line 77 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 75 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:
Generated on Tue Feb 22 13:31:31 2011 for Fawkes API by  doxygen 1.4.7