Go to the documentation of this file. 1 #ifndef STATEOBSERVATIONLOGGER_H
2 #define STATEOBSERVATIONLOGGER_H
9 #include <state-observation/api.h>
16 class STATE_OBSERVATION_DLLAPI
Logger
26 void record(
const T * address,
const std::string & filename = std::string(
""));
28 void record(
const T & reference,
const std::string & filename = std::string(
""));
32 void updateAddress(
const void * oldAddress,
const T * newAddress);
35 void setPath(
const std::string & path);
39 void push(
const T & reference);
42 void push(
const T * address);
52 void save(
bool clear =
false,
bool append =
false);
66 const std::type_info *
type;
68 log_s(
const std::string & newfilename) : type(0x0)
70 filename = newfilename;
80 typedef std::map<const void *, log_s>
Tmap;
81 typedef std::pair<const void *, log_s>
Tpair;
83 void update_(
const Tmap::iterator & i);
86 std::map<const void *, log_s>
logs_;
94 #include <state-observation/tools/logger.hxx>
96 #endif // STATEOBSERVATIONLOGGER_H
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition: definitions.hpp:100
Definitions of types and some structures.
Definition: bidim-elastic-inv-pendulum-dyn-sys.hpp:20