EventLogger Class Reference

Inheritance diagram for EventLogger:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EventLogger (const char *target, int eventId, int eventVariablesCount, const char *filename)

Protected Member Functions

void connectionClosed (Stream *stream, bool abnormal)
void incomingData (Stream *stream)
virtual void timerEvent (QTimerEvent *event)

Protected Attributes

int eventId
ofstream outputFile
QTime startingTime
Streamstream
vector< double > timeStamps
vector< vector< sint16 > > values

Detailed Description

Definition at line 39 of file eventlogger.cpp.


Constructor & Destructor Documentation

EventLogger::EventLogger ( const char *  target,
int  eventId,
int  eventVariablesCount,
const char *  filename 
) [inline]

Definition at line 50 of file eventlogger.cpp.


Member Function Documentation

void EventLogger::connectionClosed ( Stream ,
bool   
) [inline, protected, virtual]

Called when target closes connection. The only valid method to call on the stream is getTargetName(), input/output operations are forbidden. You must not call closeStream(stream) from within this method for the same stream as the one passed as parameter. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target.
abnormal whether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true)

Reimplemented from Aseba::Hub.

Definition at line 126 of file eventlogger.cpp.

void EventLogger::incomingData ( Stream  )  [inline, protected, virtual]

Called when data is available for reading on the stream. If the stream is closed during this method, an exception occurs: Hub stops the execution of this method and calls connectionClosed(); objects dynamically allocated must thus be handled with auto_ptr. If step() is used, subclass must implement this method and call read at least once. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Aseba::Hub.

Definition at line 91 of file eventlogger.cpp.

virtual void EventLogger::timerEvent ( QTimerEvent *  event  )  [inline, protected, virtual]

Definition at line 85 of file eventlogger.cpp.


Member Data Documentation

int EventLogger::eventId [protected]

Definition at line 43 of file eventlogger.cpp.

ofstream EventLogger::outputFile [protected]

Definition at line 47 of file eventlogger.cpp.

QTime EventLogger::startingTime [protected]

Definition at line 46 of file eventlogger.cpp.

Definition at line 42 of file eventlogger.cpp.

vector<double> EventLogger::timeStamps [protected]

Definition at line 45 of file eventlogger.cpp.

vector<vector<sint16> > EventLogger::values [protected]

Definition at line 44 of file eventlogger.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:05 2011