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

An IO stream based on strings. More...

#include <rtt/os/rtstreams.hpp>

Inheritance diagram for RTT::os::basic_iostreams:
RTT::os::basic_istreams RTT::os::basic_ostreams RTT::os::basic_streams RTT::os::basic_streams RTT::os::stringstreams

Public Types

typedef streambufs::streamsize streamsize
 
typedef streambufs::streamsize streamsize
 

Public Member Functions

 basic_iostreams (streambufs &s)
 
int get ()
 
basic_istreamsget (char &c)
 
basic_istreamsget (char *c, streamsize n, char delim)
 
basic_istreamsget (char *c, char delim)
 
basic_istreamsread (char *c, streamsize n)
 
streamsize readsome (char *c, streamsize n)
 
basic_istreamsoperator>> (int &i)
 
basic_istreamsoperator>> (char &c)
 
basic_istreamsoperator>> (double &f)
 
basic_istreamsoperator>> (std::string &s)
 
basic_istreamsoperator>> (unsigned int &u)
 
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 &))
 

Detailed Description

An IO stream based on strings.

Definition at line 184 of file rtstreams.hpp.

Member Typedef Documentation

Definition at line 118 of file rtstreams.hpp.

Definition at line 149 of file rtstreams.hpp.

Constructor & Destructor Documentation

RTT::os::basic_iostreams::basic_iostreams ( streambufs s)
inline

Definition at line 188 of file rtstreams.hpp.

Member Function Documentation

int RTT::os::basic_istreams::get ( )
inherited
basic_istreams & RTT::os::basic_istreams::get ( char &  c)
inherited

Definition at line 73 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::get ( char *  c,
streamsize  n,
char  delim 
)
inherited

Definition at line 79 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::get ( char *  c,
char  delim 
)
inherited

Definition at line 96 of file rtstreams.cpp.

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_istreams & RTT::os::basic_istreams::operator>> ( int &  i)
inherited

Definition at line 166 of file rtstreams.cpp.

References string_to_int().

basic_istreams & RTT::os::basic_istreams::operator>> ( char &  c)
inherited

Definition at line 180 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::operator>> ( double &  f)
inherited

Definition at line 186 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::operator>> ( std::string &  s)
inherited

Definition at line 201 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::operator>> ( unsigned int &  u)
inherited

Definition at line 217 of file rtstreams.cpp.

References string_to_unsigned_int().

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

Definition at line 56 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::read ( char *  c,
streamsize  n 
)
inherited

Definition at line 62 of file rtstreams.cpp.

basic_istreams::streamsize RTT::os::basic_istreams::readsome ( char *  c,
streamsize  n 
)
inherited

Definition at line 68 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 file: