2 #include "FileReporting.hpp" 4 #include <rtt/Logger.hpp> 5 #include "TableMarshaller.hpp" 6 #include "NiceHeaderMarshaller.hpp" 17 FileReporting::FileReporting(
const std::string& fr_name)
18 : ReportingComponent( fr_name ),
19 repfile(
"ReportFile",
"Location on disc to store the reports.",
"reports.dat")
21 this->properties()->addProperty( repfile );
24 bool FileReporting::startHook()
26 mfile.open( repfile.get().c_str() );
28 if ( this->writeHeader)
34 this->addMarshaller( fheader, fbody );
36 log(Error) <<
"Could not open file "+repfile.get()+
" for reporting."<<endlog();
39 return ReportingComponent::startHook();
42 void FileReporting::stopHook()
44 ReportingComponent::stopHook();
46 this->removeMarshallers();
53 Logger::In in(
"FileReporting::screenComponent");
54 ofstream file( (comp +
".screen").c_str() );
57 return this->screenImpl( comp, file );
bool screenComponent(const std::string &comp)
Writes the interface status of comp to a file 'comp.screen'.
A component which writes data reports to a file.
This file contains the macros and definitions to create dynamically loadable components.
The Orocos Component Library.
A marsh::MarshallInterface for generating a stream of numbers, ordered in columns.