Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Logger Class Reference

A process for logging sensor data. More...

#include <Logger.h>

Inheritance diagram for Logger:

Inheritance graph
[legend]
Collaboration diagram for Logger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Logger ()
 Constructor.

 ~Logger ()
 Destructor.

int main ()
 The main function of the process.

virtual void init ()
 Is called before the first main().

virtual bool handleMessage (InMessage &message)
 Is called for every incoming debug message.


Public Attributes

QueueFillRequest::QueueFillMode mode
 The QueueFillMode for the outgoing Queue.

unsigned long saveOrSendTime
 The time when the outgoing queue is written to the stick or allowed to be accessed via wlan.


Private Member Functions

 RECEIVER (SensorDataBuffer)

Private Attributes

 DEBUGGING
InBinaryFilefin
 this is used to read messages from a file called requests.dat

bool messageWasReceived
 If true, a message was received from the WLan or OVirtualRobotComm.


Detailed Description

A process for logging sensor data.

Messages from the PC are processed and sensor data can be sent to the PC or saved to the stick.

Author:
Max Risler

Definition at line 27 of file Logger.h.


Constructor & Destructor Documentation

Logger::Logger  ) 
 

Constructor.

Definition at line 15 of file Logger.cpp.

References Process::debugOut, INIT_DEBUGGING, INIT_RECEIVER_SENSORDATA, and MessageQueue::setSize().

Here is the call graph for this function:

Logger::~Logger  ) 
 

Destructor.

Definition at line 27 of file Logger.cpp.

References fin.


Member Function Documentation

Logger::RECEIVER SensorDataBuffer   )  [private]
 

int Logger::main  )  [virtual]
 

The main function of the process.

Implements Process.

Definition at line 33 of file Logger.cpp.

References MessageQueue::clear(), debugOut, Process::debugOut, endl(), InStream< InFile, InBinary >::eof(), InFile::exists(), fin, SystemCall::getCurrentSystemTime(), getRobotConfiguration(), MessageQueue::handleAllMessages(), idSensorData, idText, INFO, MessageQueue::isEmpty(), MessageQueue::removeRepetitions(), and WATCH.

Here is the call graph for this function:

void Logger::init  )  [virtual]
 

Is called before the first main().

Reimplemented from Process.

Definition at line 96 of file Logger.cpp.

References MessageQueue::clear(), InStream< InFile, InBinary >::eof(), InFile::exists(), fin, and MessageQueue::handleAllMessages().

Here is the call graph for this function:

bool Logger::handleMessage InMessage message  )  [virtual]
 

Is called for every incoming debug message.

Parameters:
message the message to handle
Returns:
if the message was handled

Reimplemented from Process.

Definition at line 108 of file Logger.cpp.

References InMessage::bin, SystemCall::getCurrentSystemTime(), InMessage::getMessageID(), Process::handleMessage(), idQueueFillRequest, QueueFillRequest::mode, and QueueFillRequest::seconds.

Here is the call graph for this function:


Member Data Documentation

Logger::DEBUGGING [private]
 

Definition at line 30 of file Logger.h.

QueueFillRequest::QueueFillMode Logger::mode
 

The QueueFillMode for the outgoing Queue.

Definition at line 56 of file Logger.h.

unsigned long Logger::saveOrSendTime
 

The time when the outgoing queue is written to the stick or allowed to be accessed via wlan.

Definition at line 61 of file Logger.h.

InBinaryFile* Logger::fin [private]
 

this is used to read messages from a file called requests.dat

Definition at line 67 of file Logger.h.

Referenced by init(), main(), and ~Logger().

bool Logger::messageWasReceived [private]
 

If true, a message was received from the WLan or OVirtualRobotComm.

Definition at line 70 of file Logger.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:09:25 2004 for GT2004 by doxygen 1.3.6