Public Types | Public Member Functions | Private Attributes | List of all members
RTT::os::basic_istreams Class Reference

#include <rtstreams.hpp>

Inheritance diagram for RTT::os::basic_istreams:
Inheritance graph
[legend]

Public Types

typedef streambufs::streamsize streamsize
 

Public Member Functions

 basic_istreams (streambufs &s)
 
int get ()
 
basic_istreamsget (char &c)
 
basic_istreamsget (char *c, streamsize n, char delim)
 
basic_istreamsget (char *c, char delim)
 
basic_istreamsoperator>> (int &i)
 
basic_istreamsoperator>> (char &c)
 
basic_istreamsoperator>> (double &f)
 
basic_istreamsoperator>> (std::string &s)
 
basic_istreamsoperator>> (unsigned int &u)
 
basic_istreamsread (char *c, streamsize n)
 
streamsize readsome (char *c, streamsize n)
 
virtual ~basic_istreams ()
 
- Public Member Functions inherited from RTT::os::basic_streams
virtual ~basic_streams ()
 

Private Attributes

streambufsbuf
 

Detailed Description

An basic_istream is a stream which can be read. Write operations will have no effect.

Each part that is read from the string is discared, so no seeking is possible. The problem is otherwise that the string in iostreams would grow unlimited.

Definition at line 113 of file rtstreams.hpp.

Member Typedef Documentation

Definition at line 118 of file rtstreams.hpp.

Constructor & Destructor Documentation

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

Definition at line 120 of file rtstreams.hpp.

RTT::os::basic_istreams::~basic_istreams ( )
virtual

Definition at line 233 of file rtstreams.cpp.

Member Function Documentation

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

Definition at line 73 of file rtstreams.cpp.

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

Definition at line 79 of file rtstreams.cpp.

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

Definition at line 96 of file rtstreams.cpp.

basic_istreams & RTT::os::basic_istreams::operator>> ( int &  i)

Definition at line 166 of file rtstreams.cpp.

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

Definition at line 180 of file rtstreams.cpp.

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

Definition at line 186 of file rtstreams.cpp.

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

Definition at line 201 of file rtstreams.cpp.

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

Definition at line 217 of file rtstreams.cpp.

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

Definition at line 62 of file rtstreams.cpp.

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

Definition at line 68 of file rtstreams.cpp.

Member Data Documentation

streambufs& RTT::os::basic_istreams::buf
private

Definition at line 138 of file rtstreams.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:47