OrocosComponentLibrary  2.7.0
FileReporting.hpp
00001 #ifndef ORO_COMP_FILE_REPORTING_HPP
00002 #define ORO_COMP_FILE_REPORTING_HPP
00003 
00004 #include "ReportingComponent.hpp"
00005 #include <fstream>
00006 
00007 #include <ocl/OCL.hpp>
00008 
00009 namespace OCL
00010 {
00014     class FileReporting
00015         : public ReportingComponent
00016     {
00017     protected:
00021         RTT::Property<std::string>   repfile;
00022 
00026         std::ofstream mfile;
00027 
00028         RTT::marsh::MarshallInterface* fheader;
00029         RTT::marsh::MarshallInterface* fbody;
00030     public:
00031         FileReporting(const std::string& fr_name);
00032 
00033         bool startHook();
00034 
00035         void stopHook();
00036 
00041         bool screenComponent( const std::string& comp);
00042     };
00043 }
00044 
00045 #endif