Dumper Class Reference

#include <traceval.h>

Inheritance diagram for Dumper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void setActiveSignals (const TraceSet &act)
virtual void start ()
 Called before start of tracing.
virtual void stop ()
 Called after stopping tracing.
virtual void cycle ()
 Called for each cycle before dumping the values.
virtual void markRead (const TraceValue *t)
virtual void markReadUnknown (const TraceValue *t)
virtual void markWrite (const TraceValue *t)
virtual void markChange (const TraceValue *t)
virtual ~Dumper ()
 Destructor, called for all dumpers at the very end of the run.
virtual bool enabled (const TraceValue *t) const =0
 Returns true iff tracing a particular value is enabled.

Detailed Description

Generic interface for a trace value processor

Definition at line 216 of file traceval.h.


Constructor & Destructor Documentation

virtual Dumper::~Dumper (  )  [inline, virtual]

Destructor, called for all dumpers at the very end of the run.

Should close files etc.

Definition at line 247 of file traceval.h.


Member Function Documentation

virtual void Dumper::cycle (  )  [inline, virtual]

Called for each cycle before dumping the values.

Reimplemented in DumpVCD.

Definition at line 229 of file traceval.h.

virtual bool Dumper::enabled ( const TraceValue t  )  const [pure virtual]

Returns true iff tracing a particular value is enabled.

FIXME: For a lot of values to trace, checking enabled() each time by doing find on a map() could be slow. Here is potential for more optimization!

Implemented in WarnUnknown, and DumpVCD.

virtual void Dumper::markChange ( const TraceValue t  )  [inline, virtual]

Called when the value has changed. This is mainly used for values which do not have READ/WRITE notification by checking for changes after each clock cycle. All writes changing something also appear as a change.

Reimplemented in DumpVCD.

Definition at line 243 of file traceval.h.

Referenced by TraceValue::dump().

Here is the caller graph for this function:

virtual void Dumper::markRead ( const TraceValue t  )  [inline, virtual]

Called when a traced value has been read (as long as it supports read logging!)

Reimplemented in DumpVCD.

Definition at line 233 of file traceval.h.

Referenced by TraceValue::dump().

Here is the caller graph for this function:

virtual void Dumper::markReadUnknown ( const TraceValue t  )  [inline, virtual]

Called for all values which are read before they have been written.

Reimplemented in WarnUnknown.

Definition at line 235 of file traceval.h.

Referenced by TraceValue::dump().

Here is the caller graph for this function:

virtual void Dumper::markWrite ( const TraceValue t  )  [inline, virtual]

Called when a traced value has been written (as long as it supports write logging!)

Reimplemented in DumpVCD.

Definition at line 239 of file traceval.h.

Referenced by TraceValue::dump().

Here is the caller graph for this function:

virtual void Dumper::setActiveSignals ( const TraceSet act  )  [inline, virtual]

Called with the set of all active signals, after they've been specified.

Reimplemented in DumpVCD.

Definition at line 221 of file traceval.h.

Referenced by DumpManager::addDumper().

Here is the caller graph for this function:

virtual void Dumper::start (  )  [inline, virtual]

Called before start of tracing.

Reimplemented in DumpVCD.

Definition at line 224 of file traceval.h.

virtual void Dumper::stop (  )  [inline, virtual]

Called after stopping tracing.

Reimplemented in DumpVCD.

Definition at line 226 of file traceval.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 12 16:50:48 2012 for Simulavr by  doxygen 1.6.3