OrocosComponentLibrary  2.8.3
ConsoleReporting.hpp
1 #ifndef ORO_COMP_CONSOLE_REPORTING_HPP
2 #define ORO_COMP_CONSOLE_REPORTING_HPP
3 
4 #include "ReportingComponent.hpp"
5 #include <iostream>
6 
7 #include <ocl/OCL.hpp>
8 
9 namespace OCL
10 {
15  : public ReportingComponent
16  {
17  protected:
21  std::ostream& mconsole;
22 
23  public:
27  ConsoleReporting(std::string fr_name = "ReportingComponent", std::ostream& console = std::cerr);
28 
29  bool startHook();
30 
31  void stopHook();
32 
37  bool screenComponent( const std::string& comp);
38 
39  };
40 
41 }
42 
43 #endif
A component which writes data reports to a console.
bool screenComponent(const std::string &comp)
Writes the interface status of comp to the console.
The Orocos Component Library.
Definition: Component.hpp:43
A Component for periodically reporting Component Port contents to a human readable text format...
std::ostream & mconsole
Console to write reports to.
ConsoleReporting(std::string fr_name="ReportingComponent", std::ostream &console=std::cerr)
Create a reporting component which writes to a C++ stream.