1 #ifndef LOGGER_LOGGER_TASK_HPP 2 #define LOGGER_LOGGER_TASK_HPP 4 #include "logger/LoggerBase.hpp" 5 #include <rtt/os/MutexLock.hpp> 8 class TypelibMarshallerBase;
19 class InputPortInterface;
26 friend class LoggerBase;
39 Logger(std::string
const& name =
"logger::Logger", TaskCore::TaskState initial_state = Stopped);
44 virtual bool createLoggingPort(::std::string
const & port_name,
45 ::std::string
const & type_name,
46 ::std::vector< ::logger::StreamMetadata >
const & metadata);
51 bool reportComponent(
const std::string& component );
56 bool unreportComponent(
const std::string& component );
61 bool reportPort(
const std::string& component,
const std::string& port );
66 bool unreportPort(
const std::string& component,
const std::string& port );
77 bool removeLoggingPort(std::string
const& stream_name);
80 typedef RTT::DataFlowInterface::Ports Ports;
85 bool addLoggingPort(RTT::base::InputPortInterface* reader, std::string
const& stream_name);
86 bool addLoggingPort(RTT::base::InputPortInterface* reader, std::string
const& stream_name, std::vector<logger::StreamMetadata>
const& metadata);
91 typedef std::vector<ReportDescription> Reports;
Definition: Logfile.cpp:63
Typelib::Registry * m_registry
Definition: Logger.hpp:30
Definition: Logfile.hpp:43
Definition: LoggerTypes.hpp:6
std::ofstream * m_io
Definition: Logger.hpp:31
Definition: Logger.cpp:25
Definition: Logger.hpp:24
Definition: Logger.hpp:17
Logging::Logfile * m_file
Definition: Logger.hpp:32
Definition: Logfile.hpp:48