Orocos Real-Time Toolkit  2.9.0
Public Types | Public Member Functions | Private Attributes | List of all members
RTT::os::printstream Class Reference

The printstream is a stream for printing characters to the terminal window. More...

#include <rtt/os/rtstreams.hpp>

Inheritance diagram for RTT::os::printstream:
RTT::os::print_helper RTT::os::basic_ostreams RTT::os::basic_streams

Public Types

typedef streambufs::streamsize streamsize
 

Public Member Functions

 printstream ()
 
virtual ~printstream ()
 
virtual basic_ostreamsput (char c)
 
virtual basic_ostreamswrite (const char *c, streamsize n)
 
basic_ostreamsoperator<< (int i)
 Operators. More...
 
basic_ostreamsoperator<< (long i)
 
basic_ostreamsoperator<< (char c)
 
basic_ostreamsoperator<< (char *c)
 
basic_ostreamsoperator<< (double f)
 
basic_ostreamsoperator<< (std::string s)
 
basic_ostreamsoperator<< (unsigned int u)
 
basic_ostreamsoperator<< (basic_ostreams &(*f)(basic_ostreams &))
 

Private Attributes

printbufs printer
 

Detailed Description

The printstream is a stream for printing characters to the terminal window.

It mimics the behaviour of iostreams cout.

Definition at line 200 of file rtstreams.hpp.

Member Typedef Documentation

Definition at line 149 of file rtstreams.hpp.

Constructor & Destructor Documentation

RTT::os::printstream::printstream ( )
inline

Definition at line 205 of file rtstreams.hpp.

References RTT::os::cout.

RTT::os::printstream::~printstream ( )
virtual

Definition at line 240 of file rtstreams.cpp.

Member Function Documentation

basic_ostreams & RTT::os::basic_ostreams::operator<< ( int  i)
inherited

Operators.

These can not be virtual, so each one calls the appropriate read or write method defined above.

Definition at line 115 of file rtstreams.cpp.

References int_to_string().

basic_ostreams & RTT::os::basic_ostreams::operator<< ( long  i)
inherited

Definition at line 122 of file rtstreams.cpp.

References int_to_string().

basic_ostreams & RTT::os::basic_ostreams::operator<< ( char  c)
inherited

Definition at line 129 of file rtstreams.cpp.

basic_ostreams & RTT::os::basic_ostreams::operator<< ( char *  c)
inherited

Definition at line 135 of file rtstreams.cpp.

basic_ostreams & RTT::os::basic_ostreams::operator<< ( double  f)
inherited

Definition at line 146 of file rtstreams.cpp.

References float_to_string().

basic_ostreams & RTT::os::basic_ostreams::operator<< ( std::string  s)
inherited

Definition at line 153 of file rtstreams.cpp.

basic_ostreams & RTT::os::basic_ostreams::operator<< ( unsigned int  u)
inherited

Definition at line 159 of file rtstreams.cpp.

References unsigned_int_to_string().

basic_ostreams & RTT::os::basic_ostreams::operator<< ( basic_ostreams &(*)(basic_ostreams &)  f)
inherited

Definition at line 141 of file rtstreams.cpp.

basic_ostreams & RTT::os::basic_ostreams::put ( char  c)
virtualinherited

Definition at line 56 of file rtstreams.cpp.

basic_ostreams & RTT::os::basic_ostreams::write ( const char *  c,
streamsize  n 
)
virtualinherited

Definition at line 50 of file rtstreams.cpp.


The documentation for this class was generated from the following files: