Log Class Reference
[Components for log files]

Class Log writes mixed object's component info in its header, and data that comes through this component. More...

#include <Log.h>

Collaboration diagram for Log:

Collaboration graph
[legend]
List of all members.

Public Slots

void writeLog (QVariant pValue, QTime pTime)
 Slot writing in the log file.
void writeLogFromGUI (QVariant pValue, QTime pTime)
 Slot writing in the log file.

Public Member Functions

 Log (MixedObjectComponent *pObject)
 Constructs a logging component for the mixed object component pObject.
 ~Log ()
 Destroys the object.

Detailed Description

Class Log writes mixed object's component info in its header, and data that comes through this component.

A Log component need to be constructed with its corresponding mixed object component reference (see Log(MixedObjectComponent* pObject)). Then it needs to be connected to it with for example the following code line :

        QObject::connect(&Component, SIGNAL(updated(QVariant, QTime)), &ComponentLog, SLOT(writeLog(QVariant, QTime)));
Note that you need to connect your mixed object component with a signal that matches the (QVariant, QTime) parameters.


Constructor & Destructor Documentation

Log::Log ( MixedObjectComponent pObject  ) 

Constructs a logging component for the mixed object component pObject.

Parameters:
pObject 

Log::~Log (  ) 

Destroys the object.

does nothing.


Member Function Documentation

void Log::writeLog ( QVariant  pValue,
QTime  pTime 
) [slot]

Slot writing in the log file.

Parameters:
pValue the value to be logged
pTime the time this value was emitted
Happens the line "pValue at pTime" at the end of the file.

void Log::writeLogFromGUI ( QVariant  pValue,
QTime  pTime 
) [slot]

Slot writing in the log file.

Parameters:
pValue the value to be logged
pTime the time this value was emitted
Happens the line "pValue at pTime" at the end of the file and tag this with the origin (GUI)


The documentation for this class was generated from the following files:
Generated on Tue Mar 10 11:18:18 2009 for Mixed Objects by  doxygen 1.5.2