scc
2022.4.0
SystemC components library
|
base class for automatic tracer More...
#include <tracer_base.h>
Public Member Functions | |
tracer_base (const sc_core::sc_module_name &nm) | |
named constructor More... | |
tracer_base (const sc_core::sc_module_name &nm, sc_core::sc_trace_file *tf, bool owned=true) | |
named constructor with trace file More... | |
~tracer_base () | |
destructor | |
void | set_trace_types (trace_types t) |
set the types to trace More... | |
const sc_core::sc_trace_file * | get_trace_file () const |
get the tracefile used by this tracer More... | |
sc_core::sc_trace_file * | get_trace_file () |
void | set_trace_file (sc_core::sc_trace_file *trf) |
set the trace file of this tracer More... | |
Protected Member Functions | |
virtual void | descend (const sc_core::sc_object *, bool trace_all) |
Static Protected Member Functions | |
static std::string | get_name () |
static void | try_trace (sc_core::sc_trace_file *trace_file, const sc_core::sc_object *object, trace_types t) |
Protected Attributes | |
bool | default_trace_enable {true} |
the default for tracing if no attribute is configured | |
sc_core::sc_trace_file * | trf {nullptr} |
trace_types | types_to_trace {trace_types::ALL} |
base class for automatic tracer
it provide the basic infrastructure to automagically trace ports, signals, tlm sockets and sc_variables. It comes with some limitations:
Definition at line 78 of file tracer_base.h.
|
inline |
|
inline |
named constructor with trace file
nm | the instance name of the tracer |
tf | the trace file |
owned | if true the tracefile is owned by the tracer and closed upon simulation end |
Definition at line 96 of file tracer_base.h.
|
inline |
get the tracefile used by this tracer
Definition at line 118 of file tracer_base.h.
|
inline |
set the trace file of this tracer
The provided file is not owned by the tracer. Hence the caller is responsible for closing the tracefile
trf |
Definition at line 133 of file tracer_base.h.
|
inline |