Orocos Real-Time Toolkit  2.8.3
Public Types | Public Member Functions | Static Public Attributes | List of all members
RTT::os::stringbufs Class Reference

A streambufs implementation based on strings. More...

#include <rtt/os/rtstreambufs.hpp>

Inheritance diagram for RTT::os::stringbufs:
RTT::os::streambufs

Public Types

typedef streambufs::streamsize streamsize
 

Public Member Functions

 stringbufs (const std::string &c="")
 
virtual ~stringbufs ()
 
virtual int sgetc ()
 
virtual streamsize sgetn (char *s, streamsize n)
 
virtual int sputc (char c)
 
virtual streamsize sputn (const char *s, streamsize n)
 
std::string str () const
 
void str (std::string &new_str)
 

Static Public Attributes

static const streamsize buf_size = 512
 

Detailed Description

A streambufs implementation based on strings.

It is initialized to a stringsize of 512 bytes. You can increase it by calling buf.str().reserve( x_bytes );

Definition at line 70 of file rtstreambufs.hpp.

Member Typedef Documentation

Definition at line 74 of file rtstreambufs.hpp.

Constructor & Destructor Documentation

RTT::os::stringbufs::stringbufs ( const std::string &  c = "")
inline

Definition at line 78 of file rtstreambufs.hpp.

virtual RTT::os::stringbufs::~stringbufs ( )
inlinevirtual

Definition at line 80 of file rtstreambufs.hpp.

Member Function Documentation

virtual int RTT::os::stringbufs::sgetc ( )
inlinevirtual

Implements RTT::os::streambufs.

Definition at line 82 of file rtstreambufs.hpp.

virtual streamsize RTT::os::stringbufs::sgetn ( char *  s,
streamsize  n 
)
inlinevirtual

Implements RTT::os::streambufs.

Definition at line 88 of file rtstreambufs.hpp.

virtual int RTT::os::stringbufs::sputc ( char  c)
inlinevirtual

Implements RTT::os::streambufs.

Definition at line 97 of file rtstreambufs.hpp.

virtual streamsize RTT::os::stringbufs::sputn ( const char *  s,
streamsize  n 
)
inlinevirtual

Implements RTT::os::streambufs.

Definition at line 107 of file rtstreambufs.hpp.

std::string RTT::os::stringbufs::str ( ) const
inline

Definition at line 116 of file rtstreambufs.hpp.

void RTT::os::stringbufs::str ( std::string &  new_str)
inline

Definition at line 121 of file rtstreambufs.hpp.

Member Data Documentation

const streamsize RTT::os::stringbufs::buf_size = 512
static

Definition at line 76 of file rtstreambufs.hpp.


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