#include <rtstreambufs.hpp>
Public Types | |
typedef streambufs::streamsize | streamsize |
typedef streambufs::streamsize | streamsize |
Public Member Functions | |
virtual int | sgetc () |
virtual int | sgetc () |
virtual streamsize | sgetn (char *s, streamsize n) |
virtual streamsize | sgetn (char *s, streamsize n) |
virtual int | sputc (char c) |
virtual int | sputc (char c) |
virtual streamsize | sputn (const char *s, streamsize n) |
virtual streamsize | sputn (const char *s, streamsize n) |
void | str (std::string &new_str) |
std::string | str () const |
void | str (std::string &new_str) |
std::string | str () const |
stringbufs (const std::string &c="") | |
stringbufs (const std::string &c="") | |
virtual | ~stringbufs () |
virtual | ~stringbufs () |
Static Public Attributes | |
static const streamsize | buf_size = 512 |
Private Member Functions | |
void | cleanup (int free=1) |
void | cleanup (int free=1) |
void | clear () |
void | clear () |
Private Attributes | |
std::string | _s |
streamsize | end |
streamsize | ptr |
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 install/include/rtt/os/rtstreambufs.hpp.
Reimplemented from RTT::os::streambufs.
Definition at line 74 of file rtt/os/rtstreambufs.hpp.
Reimplemented from RTT::os::streambufs.
Definition at line 74 of file install/include/rtt/os/rtstreambufs.hpp.
RTT::os::stringbufs::stringbufs | ( | const std::string & | c = "" |
) | [inline] |
Definition at line 78 of file install/include/rtt/os/rtstreambufs.hpp.
virtual RTT::os::stringbufs::~stringbufs | ( | ) | [inline, virtual] |
Definition at line 80 of file install/include/rtt/os/rtstreambufs.hpp.
RTT::os::stringbufs::stringbufs | ( | const std::string & | c = "" |
) | [inline] |
Definition at line 78 of file rtt/os/rtstreambufs.hpp.
virtual RTT::os::stringbufs::~stringbufs | ( | ) | [inline, virtual] |
Definition at line 80 of file rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::cleanup | ( | int | free = 1 |
) | [inline, private] |
free,the | minimum space that must be free. |
Definition at line 137 of file rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::cleanup | ( | int | free = 1 |
) | [inline, private] |
free,the | minimum space that must be free. |
Definition at line 137 of file install/include/rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::clear | ( | ) | [inline, private] |
Definition at line 127 of file rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::clear | ( | ) | [inline, private] |
Definition at line 127 of file install/include/rtt/os/rtstreambufs.hpp.
virtual int RTT::os::stringbufs::sgetc | ( | ) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 82 of file rtt/os/rtstreambufs.hpp.
virtual int RTT::os::stringbufs::sgetc | ( | ) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 82 of file install/include/rtt/os/rtstreambufs.hpp.
virtual streamsize RTT::os::stringbufs::sgetn | ( | char * | s, | |
streamsize | n | |||
) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 88 of file rtt/os/rtstreambufs.hpp.
virtual streamsize RTT::os::stringbufs::sgetn | ( | char * | s, | |
streamsize | n | |||
) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 88 of file install/include/rtt/os/rtstreambufs.hpp.
virtual int RTT::os::stringbufs::sputc | ( | char | c | ) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 97 of file rtt/os/rtstreambufs.hpp.
virtual int RTT::os::stringbufs::sputc | ( | char | c | ) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 97 of file install/include/rtt/os/rtstreambufs.hpp.
virtual streamsize RTT::os::stringbufs::sputn | ( | const char * | s, | |
streamsize | n | |||
) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 107 of file rtt/os/rtstreambufs.hpp.
virtual streamsize RTT::os::stringbufs::sputn | ( | const char * | s, | |
streamsize | n | |||
) | [inline, virtual] |
Implements RTT::os::streambufs.
Definition at line 107 of file install/include/rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::str | ( | std::string & | new_str | ) | [inline] |
Definition at line 121 of file rtt/os/rtstreambufs.hpp.
std::string RTT::os::stringbufs::str | ( | ) | const [inline] |
Definition at line 116 of file rtt/os/rtstreambufs.hpp.
void RTT::os::stringbufs::str | ( | std::string & | new_str | ) | [inline] |
Definition at line 121 of file install/include/rtt/os/rtstreambufs.hpp.
std::string RTT::os::stringbufs::str | ( | ) | const [inline] |
Definition at line 116 of file install/include/rtt/os/rtstreambufs.hpp.
std::string RTT::os::stringbufs::_s [private] |
Definition at line 148 of file install/include/rtt/os/rtstreambufs.hpp.
static const streamsize RTT::os::stringbufs::buf_size = 512 [static] |
Definition at line 76 of file install/include/rtt/os/rtstreambufs.hpp.
streamsize RTT::os::stringbufs::end [private] |
Definition at line 150 of file install/include/rtt/os/rtstreambufs.hpp.
streamsize RTT::os::stringbufs::ptr [private] |
Definition at line 149 of file install/include/rtt/os/rtstreambufs.hpp.