Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SensorObserverControl Class Reference

#include <SensorObserverControl.h>

Inheritance diagram for SensorObserverControl:

Inheritance graph
[legend]
List of all members.

Detailed Description

allows logging of sensor information to the console or file

Definition at line 12 of file SensorObserverControl.h.

Public Member Functions

 SensorObserverControl ()
 constructor
virtual ControlBasedoSelect ()
 opens a custom (embedded) menu to toggle individual sensors
virtual void refresh ()
 called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
virtual void processEvent (const EventBase &event)
 sends all events received to stdout and/or logfile

Protected Member Functions

void checkLogFile ()
 checks to see if logfilePath differs from the StringInputControl's value and switches it if it is
void updateRT ()
 update the real-time sub-control view (rtCtl)

Protected Attributes

std::string logfilePath
 address of the logfile, if any (empty string is no logfile)
std::ofstream logfile
 if a filename is given, events are logged to here
ControlBasehelpCtl
 control containing help info
ControlBasesensorCtl
 control of sensor selectors
ControlBasebuttonCtl
 control of buttons selectors
ControlBaseoutputCtl
 control of outputs selectors
ControlBasedutyCtl
 control of duty selectors
ToggleControlconsoleCtl
 turn logging to the console on and off
StringInputControlfileCtl
 turn logging to a file on and off
RTViewControlrtCtl
 a submenu containing real-time view of current values
StringInputControlrtFreqCtl
 the frequency at which rtCtl should be updated
unsigned int numListeners
 count of active console or file control so we know if we're actually logging

Private Member Functions

 SensorObserverControl (const SensorObserverControl &)
 don't call
SensorObserverControloperator= (const SensorObserverControl &)
 don't call

Friends

class RTViewControl

Classes

class  RTViewControl
 The real time view for SensorObserverControl is split into a separate class for more straightfoward handling of refreshes. More...


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

Tekkotsu v3.0
Generated Fri May 11 20:08:45 2007 by Doxygen 1.4.7