ClCommonTracer Class Reference

#include <clcommontracer.h>

Inheritance diagram for ClCommonTracer:

Inheritance graph
[legend]
Collaboration diagram for ClCommonTracer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClCommonTracer ()
void format (ClMessage *m, ConnectorTrace *sap)

Detailed Description

The ClCommonTracer is born for tracing the common attributes of the ClMessages, i.e. the suorce and the destination address. The class extend ClMessageTracer, but it is compiled and linked in another library. Thus, user which want to change the output format of the trace file can write a new class and plug their library in the simulation (instead this). When the library are loaded a ClCommonTracer are instanced and is plugged to the ClTracer by invoking the ClSap addCommonTracer method.

See also:
ClMessageTracer, ClTracer, ClSAP

Definition at line 52 of file clcommontracer.h.


Constructor & Destructor Documentation

ClCommonTracer::ClCommonTracer (  ) 

The class constructor initialize the clType to 0. This value is not relevant because this class is a common ClMessageTracer thus it has not to checked the incoming ClMessage type.

See also:
ClMessageTracer, ClMessage

Definition at line 33 of file clcommontracer.cc.


Member Function Documentation

void ClCommonTracer::format ( ClMessage m,
ConnectorTrace sap 
) [virtual]

This method writes a string in the trace file with the following format:

[CMN: id src dstType dst direction]

where

Parameters:
m pointer to the ClMessage to be traced
sap pointer to the ClSAP instance which ask for the trace

Implements ClMessageTracer.

Definition at line 37 of file clcommontracer.cc.

References ClMessage::direction(), DOWN, ClMessage::getDest(), ClMessage::getDestType(), ClMessage::getSource(), TOMODULE, TONODECORE, ClMessage::uid(), UNICAST, UP, and ClMessageTracer::writeTrace().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:48:26 2008 for NS-MIRACLE library by  doxygen 1.5.2