Open CASCADE Technology  7.7.0
Public Types | Public Member Functions

LDOM_OSStream Class Reference

Subclass if std::ostream allowing to increase performance of outputting data into a string avoiding reallocation of buffer. Class LDOM_OSStream implements output into a sequence of strings and getting the result as a string. It inherits Standard_OStream (std::ostream). Beside methods of std::ostream, it also has additional useful methods: str(), Length() and Clear(). More...

#include <LDOM_OSStream.hxx>

Inheritance diagram for LDOM_OSStream:
Inheritance graph
[legend]

Public Types

enum  BOMType {
  BOM_UNDEFINED , BOM_UTF8 , BOM_UTF16BE , BOM_UTF16LE ,
  BOM_UTF32BE , BOM_UTF32LE , BOM_UTF7 , BOM_UTF1 ,
  BOM_UTFEBCDIC , BOM_SCSU , BOM_BOCU1 , BOM_GB18030
}
 

Public Member Functions

 LDOM_OSStream (const Standard_Integer theMaxBuf)
 Constructor. More...
 
virtual ~LDOM_OSStream ()
 
Standard_CString str () const
 
Standard_Integer Length () const
 
void Clear ()
 

Detailed Description

Subclass if std::ostream allowing to increase performance of outputting data into a string avoiding reallocation of buffer. Class LDOM_OSStream implements output into a sequence of strings and getting the result as a string. It inherits Standard_OStream (std::ostream). Beside methods of std::ostream, it also has additional useful methods: str(), Length() and Clear().

Member Enumeration Documentation

◆ BOMType

Enumerator
BOM_UNDEFINED 
BOM_UTF8 
BOM_UTF16BE 
BOM_UTF16LE 
BOM_UTF32BE 
BOM_UTF32LE 
BOM_UTF7 
BOM_UTF1 
BOM_UTFEBCDIC 
BOM_SCSU 
BOM_BOCU1 
BOM_GB18030 

Constructor & Destructor Documentation

◆ LDOM_OSStream()

LDOM_OSStream::LDOM_OSStream ( const Standard_Integer  theMaxBuf)

Constructor.

◆ ~LDOM_OSStream()

virtual LDOM_OSStream::~LDOM_OSStream ( )
virtual

Member Function Documentation

◆ Clear()

void LDOM_OSStream::Clear ( )
inline

◆ Length()

Standard_Integer LDOM_OSStream::Length ( ) const
inline

◆ str()

Standard_CString LDOM_OSStream::str ( ) const
inline

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