OrocosComponentLibrary  2.8.3
FileReporting.hpp
1 #ifndef ORO_COMP_FILE_REPORTING_HPP
2 #define ORO_COMP_FILE_REPORTING_HPP
3 
4 #include "ReportingComponent.hpp"
5 #include <fstream>
6 
7 #include <ocl/OCL.hpp>
8 
9 namespace OCL
10 {
15  : public ReportingComponent
16  {
17  protected:
21  RTT::Property<std::string> repfile;
22 
26  std::ofstream mfile;
27 
28  RTT::marsh::MarshallInterface* fheader;
29  RTT::marsh::MarshallInterface* fbody;
30  public:
31  FileReporting(const std::string& fr_name);
32 
33  bool startHook();
34 
35  void stopHook();
36 
41  bool screenComponent( const std::string& comp);
42  };
43 }
44 
45 #endif
std::ofstream mfile
File to write reports to.
bool screenComponent(const std::string &comp)
Writes the interface status of comp to a file &#39;comp.screen&#39;.
A component which writes data reports to a file.
RTT::Property< std::string > repfile
File name to write reports to.
The Orocos Component Library.
Definition: Component.hpp:43
A Component for periodically reporting Component Port contents to a human readable text format...