24#ifndef _TOOLS_BATTERY_MONITOR_BATTERY_MONITOR_TREE_VIEW_H_
25#define _TOOLS_BATTERY_MONITOR_BATTERY_MONITOR_TREE_VIEW_H_
34class BatteryInterface;
35class InterfaceDispatcher;
61 Gtk::TreeModelColumn<Glib::ustring>
fqdn;
83 Gtk::MessageDialog *m_dlg_warning;
85 Glib::Dispatcher m_trigger_update;
86 float m_relative_soc_threshold;
87 std::map<std::string, unsigned int> m_below_threshold_counter;
Column record class for the battery monitor treeview.
Gtk::TreeModelColumn< float > relative_soc
The battery's relative state of charge.
Gtk::TreeModelColumn< float > absolute_soc
The battery's absolute state of charge.
Gtk::TreeModelColumn< Glib::ustring > short_name
A shorter hostname (w/o domain)
Gtk::TreeModelColumn< float > current
The battery's current.
Gtk::TreeModelColumn< Glib::ustring > fqdn
The FQDN.
Gtk::TreeModelColumn< float > voltage
The battery's voltage.
A treeview that retrieves battery data from the robots over remote blackboard connections and display...
virtual ~BatteryMonitorTreeView()
Destructor.
std::map< std::string, fawkes::BlackBoard * > m_remote_bbs
Map with remote blackboards: hostname -> remote blackboard.
void rem_host(const char *host)
Remove given host.
std::map< std::string, fawkes::BatteryInterface * > m_battery_interfaces
Map containing the battery interfaces: hostname -> battery interface.
BatteryMonitorTreeView(BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
Constructor.
BatteryRecord m_battery_record
Column record object to acces the columns of the storage object.
std::map< std::string, fawkes::InterfaceDispatcher * > m_interface_dispatcher
Interface dispatcher for the battery interfaces.
void add_host(const char *host)
Add given host.
Glib::RefPtr< Gtk::ListStore > m_battery_list
Storage object.
Base class for all Fawkes BlackBoard interfaces.
Fawkes library namespace.