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

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 int theMaxBuf)

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

◆ ~LDOM_SBuffer()

LDOM_SBuffer::~LDOM_SBuffer ( )
override

Member Function Documentation

◆ Clear()

void LDOM_SBuffer::Clear ( )

Clears first element of sequence and removes all others.

◆ Length()

int LDOM_SBuffer::Length ( ) const
inline

Returns full length of data contained.

◆ overflow()

int LDOM_SBuffer::overflow ( int c = EOF)
override

◆ str()

const char * 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()

int LDOM_SBuffer::underflow ( )
override

◆ xsputn()

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

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