orocos_cpp
LoggerProxy.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <rtt/transports/corba/TaskContextProxy.hpp>
3 #include <orocos_cpp_base/ProxyPort.hpp>
4 
5 namespace orocos_cpp
6 {
7 
8 class LoggerProxyInitializer : public RTT::corba::TaskContextProxy
9 {
10  public:
11  LoggerProxyInitializer(std::string location, bool is_ior = false);
12 
13  static void initTypes();
14 };
15 
17 {
18  protected:
19 
20  public:
21 
22  static const std::string ModelName;
23 
28  LoggerProxy(std::string location, bool is_ior = false);
29 
30  void synchronize();
31  OutputProxyPort< boost::int32_t > state;
32 
33 
34  RTT::Property< ::std::string > &file;
35  RTT::Property< bool > &overwrite_existing_files;
36 
37 
38  bool reportComponent(::std::string const & name);
39  bool unreportComponent(::std::string const & name);
40  bool reportPort(::std::string const & component, ::std::string const & port);
41  bool unreportPort(::std::string const & component, ::std::string const & port);
42  bool createLoggingPort(::std::string const & port_name, ::std::string const & type_name);
43  bool removeLoggingPort(::std::string const & port_name);
44  void clear();
45  ::std::string getModelName();
46  boost::int32_t __orogen_getTID();
47 
48 
49 };
50 
51 }
static void initTypes()
Definition: LoggerProxy.cpp:38
Definition: ConfigurationHelper.hpp:13
RTT::Property< bool > & overwrite_existing_files
Definition: LoggerProxy.hpp:35
OutputProxyPort< boost::int32_t > state
Definition: LoggerProxy.hpp:31
Definition: LoggerProxy.hpp:8
RTT::Property< ::std::string > & file
Definition: LoggerProxy.hpp:34
Definition: LoggerProxy.hpp:16
static const std::string ModelName
Definition: LoggerProxy.hpp:22
LoggerProxyInitializer(std::string location, bool is_ior=false)
Definition: LoggerProxy.cpp:16