OCL::HMIConsoleOutput Class Reference

This component can be used to display messages on the standard output. More...

#include <HMIConsoleOutput.hpp>

List of all members.

Public Member Functions

void display (const std::string &what)
 Display a message on standard output.
void display (const std::string &what)
 Display a message on standard output.
void displayBool (bool what)
 Display a boolean on standard output.
void displayBool (bool what)
 Display a boolean on standard output.
void displayDouble (double what)
 Display a double on standard output.
void displayDouble (double what)
 Display a double on standard output.
void displayInt (int what)
 Display an integer on standard output.
void displayInt (int what)
 Display an integer on standard output.
template<class T >
void dolog (const T &what)
template<class T >
void dolog (const T &what)
void enableColor (bool yesno=true)
void enableColor (bool yesno=true)
template<class T >
void enqueue (const T &what)
template<class T >
void enqueue (const T &what)
 HMIConsoleOutput (const std::string &name="cout")
 HMIConsoleOutput (const std::string &name="cout")
void log (const std::string &what)
void log (const std::string &what)
void logBool (bool what)
 Log a boolean on standard output.
void logBool (bool what)
 Log a boolean on standard output.
void logDouble (double what)
 Log a double on standard output.
void logDouble (double what)
 Log a double on standard output.
void logInt (int what)
 Log an integer on standard output.
void logInt (int what)
 Log an integer on standard output.
void setPrompt (const std::string &prompt)
void setPrompt (const std::string &prompt)
void updateHook ()
void updateHook ()
 ~HMIConsoleOutput ()
 ~HMIConsoleOutput ()

Private Attributes

std::string _prompt
std::ostringstream backup
std::string coloroff
std::string coloron
RTT::os::Mutex log_lock
std::ostringstream logbackup
std::ostringstream logmessages
std::ostringstream messages
RTT::os::Mutex msg_lock

Detailed Description

This component can be used to display messages on the standard output.

It is known as the 'cout' component in scripts.

HMI == Human-Machine Interface

Definition at line 50 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.


Constructor & Destructor Documentation

OCL::HMIConsoleOutput::HMIConsoleOutput ( const std::string &  name = "cout"  )  [inline]
OCL::HMIConsoleOutput::~HMIConsoleOutput (  )  [inline]
OCL::HMIConsoleOutput::HMIConsoleOutput ( const std::string &  name = "cout"  )  [inline]

Definition at line 65 of file ocl/HMIConsoleOutput.hpp.

OCL::HMIConsoleOutput::~HMIConsoleOutput (  )  [inline]

Definition at line 81 of file ocl/HMIConsoleOutput.hpp.


Member Function Documentation

void OCL::HMIConsoleOutput::display ( const std::string &  what  )  [inline]

Display a message on standard output.

Definition at line 131 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::display ( const std::string &  what  )  [inline]

Display a message on standard output.

Definition at line 131 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayBool ( bool  what  )  [inline]

Display a boolean on standard output.

Definition at line 163 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayBool ( bool  what  )  [inline]

Display a boolean on standard output.

Definition at line 163 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayDouble ( double  what  )  [inline]

Display a double on standard output.

Definition at line 179 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayDouble ( double  what  )  [inline]

Display a double on standard output.

Definition at line 179 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayInt ( int  what  )  [inline]

Display an integer on standard output.

Definition at line 171 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::displayInt ( int  what  )  [inline]

Display an integer on standard output.

Definition at line 171 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

template<class T >
void OCL::HMIConsoleOutput::dolog ( const T &  what  )  [inline]

Definition at line 185 of file ocl/HMIConsoleOutput.hpp.

template<class T >
void OCL::HMIConsoleOutput::dolog ( const T &  what  )  [inline]
void OCL::HMIConsoleOutput::enableColor ( bool  yesno = true  )  [inline]

Enable or disable using a colored prompt.

Definition at line 108 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::enableColor ( bool  yesno = true  )  [inline]

Enable or disable using a colored prompt.

Definition at line 108 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

template<class T >
void OCL::HMIConsoleOutput::enqueue ( const T &  what  )  [inline]

Put a message in the queue. The message must be convertible to a stream using operator<<().

Definition at line 142 of file ocl/HMIConsoleOutput.hpp.

template<class T >
void OCL::HMIConsoleOutput::enqueue ( const T &  what  )  [inline]

Put a message in the queue. The message must be convertible to a stream using operator<<().

Definition at line 142 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::log ( const std::string &  what  )  [inline]

Definition at line 203 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::log ( const std::string &  what  )  [inline]
void OCL::HMIConsoleOutput::logBool ( bool  what  )  [inline]

Log a boolean on standard output.

Definition at line 210 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::logBool ( bool  what  )  [inline]

Log a boolean on standard output.

Definition at line 210 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::logDouble ( double  what  )  [inline]

Log a double on standard output.

Definition at line 226 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::logDouble ( double  what  )  [inline]

Log a double on standard output.

Definition at line 226 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::logInt ( int  what  )  [inline]

Log an integer on standard output.

Definition at line 218 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::logInt ( int  what  )  [inline]

Log an integer on standard output.

Definition at line 218 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::setPrompt ( const std::string &  prompt  )  [inline]

Set the prompt text.

Definition at line 122 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::setPrompt ( const std::string &  prompt  )  [inline]

Set the prompt text.

Definition at line 122 of file install/include/orocos/ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::updateHook (  )  [inline]

Definition at line 86 of file ocl/HMIConsoleOutput.hpp.

void OCL::HMIConsoleOutput::updateHook (  )  [inline]

Member Data Documentation

std::string OCL::HMIConsoleOutput::_prompt [private]
std::ostringstream OCL::HMIConsoleOutput::backup [private]
std::string OCL::HMIConsoleOutput::coloroff [private]
std::string OCL::HMIConsoleOutput::coloron [private]
RTT::os::Mutex OCL::HMIConsoleOutput::log_lock [private]
std::ostringstream OCL::HMIConsoleOutput::logbackup [private]
std::ostringstream OCL::HMIConsoleOutput::logmessages [private]
std::ostringstream OCL::HMIConsoleOutput::messages [private]
RTT::os::Mutex OCL::HMIConsoleOutput::msg_lock [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ocl
Author(s): OCL Development Team
autogenerated on Fri Jan 11 09:50:53 2013