Open CASCADE Technology  7.5.0
Data Structures | Public Member Functions
LDOM_SBuffer Class Reference

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>

Inheritance diagram for LDOM_SBuffer:
Inheritance graph
[legend]

Public Member Functions

 LDOM_SBuffer (const Standard_Integer theMaxBuf)
 Constructor. Sets a default value for the length of each sequence element. More...
 
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. More...
 
Standard_Integer Length () const
 Returns full length of data contained. More...
 
void Clear ()
 Clears first element of sequence and removes all others. More...
 
virtual int overflow (int c=EOF) override
 
virtual int underflow () override
 
virtual std::streamsize xsputn (const char *s, std::streamsize n) override
 
 ~LDOM_SBuffer ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LDOM_SBuffer()

LDOM_SBuffer::LDOM_SBuffer ( const Standard_Integer  theMaxBuf)

Constructor. Sets a default value for the length of each sequence element.

◆ ~LDOM_SBuffer()

LDOM_SBuffer::~LDOM_SBuffer ( )

Member Function Documentation

◆ Clear()

void LDOM_SBuffer::Clear ( )

Clears first element of sequence and removes all others.

◆ Length()

Standard_Integer LDOM_SBuffer::Length ( ) const
inline

Returns full length of data contained.

◆ overflow()

virtual int LDOM_SBuffer::overflow ( int  c = EOF)
overridevirtual

◆ str()

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.

◆ underflow()

virtual int LDOM_SBuffer::underflow ( )
overridevirtual

◆ xsputn()

virtual std::streamsize LDOM_SBuffer::xsputn ( const char *  s,
std::streamsize  n 
)
overridevirtual

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