6 #include <rtt/types/Types.hpp> 24 doc(
"A service that provides basic printing to std::cout, std::cerr and the RTT::Logger.");
27 "Prints a line to standard output.").arg(
"line",
28 "A string. Use a '+' to mix strings with numbers/variables.");
30 "Prints a line to standard error.").arg(
"line",
31 "A string. Use a '+' to mix strings with numbers/variables.");
33 "Prints a line to Orocos logger class.").arg(
"level",
"The LogLevel to use.").arg(
"line",
34 "A string. Use a '+' to mix strings with numbers/variables.");
37 if (types::Types()->type(
"LogLevel") == 0) {
56 std::cout << arg << std::endl;
60 std::cerr << arg << std::endl;
PrintService(TaskContext *parent)
#define ORO_SERVICE_NAMED_PLUGIN(SERVICE, NAME)
Operation< Signature > & addOperation(Operation< Signature > &op)
boost::shared_ptr< GlobalsRepository > shared_ptr
void printlog(Logger::LogLevel level, const std::string &arg)
const std::string & doc() const
void println(const std::string &arg)
void printerr(const std::string &arg)