8 #include <dynamic-graph/entity.h> 9 #include <dynamic-graph/pool.h> 12 #include <boost/shared_ptr.hpp> 28 std::ofstream* aofs =
new std::ofstream;
29 ofstreamShrPtr ofs_shrptr = boost::shared_ptr<std::ofstream>(aofs);
30 aofs->open(filename, std::ofstream::out);
33 dgRTLOG() <<
"Added " << filename <<
" as an output stream \n";
34 mapOfFiles_[filename] = ofs_shrptr;
38 for (
const auto& el : mapOfFiles_) el.second->close();
#define dgADD_OSTREAM_TO_RTLOG(ostr)
void closeLoggerFileOutputStream()
void addLoggerFileOutputStream(const char *filename)
std::map< std::string, ofstreamShrPtr > mapOfFiles_
void addLoggerCoutOutputStream()
boost::shared_ptr< std::ofstream > ofstreamShrPtr
void realTimeLoggerDestroy()
void realTimeLoggerInstance()
void realTimeLoggerSpinOnce()
static RealTimeLogger & instance()