6 #ifndef DYNAMIC_GRAPH_TRACER_H 7 #define DYNAMIC_GRAPH_TRACER_H 14 #include <boost/function.hpp> 15 #include <dynamic-graph/config-tracer.hh> 59 Tracer(
const std::string n);
63 const std::string &filename =
"");
64 void addSignalToTraceByName(
const std::string &signame,
65 const std::string &filename =
"");
66 void clearSignalToTrace();
68 void openFiles(
const std::string &rootdir,
const std::string &basename,
69 const std::string &suffix);
70 virtual void closeFiles();
74 const std::string &filename);
84 virtual void recordSignal(std::ostream &os,
const SignalBase<int> &sig);
85 int &recordTrigger(
int &dummy,
const int &time);
89 void stop() { play =
false; }
96 DG_TRACER_DLLAPI
friend std::ostream &
operator<<(std::ostream &os,
100 void display(std::ostream &os)
const;
SignalTimeDependent< int, int > triger
This class represents an entity, i.e. a generic computational unit that provides input and output sig...
void setTraceStyle(const TraceStyle &style)
dynamicgraph::SignalArray_const< double > sig
TraceStyle getTraceStyle()
DYNAMIC_GRAPH_DLLAPI std::ostream & operator<<(std::ostream &os, const dynamicgraph::Entity &ent)
void setFrenquency(const double &frqu)
std::list< std::string > NameList
#define DYNAMIC_GRAPH_ENTITY_DECL()
Helper macro for entity declaration.
Tracer plug-in main class.
SignalList toTraceSignals
std::list< std::ostream * > FileList
std::list< const SignalBase< int > * > SignalList