Open CASCADE Technology 7.8.0
|
Class LDOM_SBuffer inherits std::streambuf and redefines some virtual methods of it (overflow() and xsputn()). This class contains pointers on first and current element of sequence, also it has methods for the sequence management. More...
#include <LDOM_OSStream.hxx>
Public Member Functions | |
LDOM_SBuffer (const Standard_Integer theMaxBuf) | |
Constructor. Sets a default value for the length of each sequence element. | |
Standard_CString | str () const |
Concatenates strings of all sequence elements into one string. Space for output string is allocated with operator new. Caller of this function is responsible for memory release after the string usage. | |
Standard_Integer | Length () const |
Returns full length of data contained. | |
void | Clear () |
Clears first element of sequence and removes all others. | |
virtual int | overflow (int c=EOF) override |
virtual int | underflow () override |
virtual std::streamsize | xsputn (const char *s, std::streamsize n) override |
~LDOM_SBuffer () | |
Class LDOM_SBuffer inherits std::streambuf and redefines some virtual methods of it (overflow() and xsputn()). This class contains pointers on first and current element of sequence, also it has methods for the sequence management.
LDOM_SBuffer::LDOM_SBuffer | ( | const Standard_Integer | theMaxBuf | ) |
Constructor. Sets a default value for the length of each sequence element.
LDOM_SBuffer::~LDOM_SBuffer | ( | ) |
void LDOM_SBuffer::Clear | ( | ) |
Clears first element of sequence and removes all others.
|
inline |
Returns full length of data contained.
Standard_CString LDOM_SBuffer::str | ( | ) | const |
Concatenates strings of all sequence elements into one string. Space for output string is allocated with operator new. Caller of this function is responsible for memory release after the string usage.