Open CASCADE Technology  7.3.0
Static Public Member Functions
BinTools Class Reference

Tool to keep shapes in binary format. More...

#include <BinTools.hxx>

Static Public Member Functions

static Standard_OStreamPutReal (Standard_OStream &OS, const Standard_Real theValue)
 
static Standard_OStreamPutInteger (Standard_OStream &OS, const Standard_Integer theValue)
 
static Standard_OStreamPutBool (Standard_OStream &OS, const Standard_Boolean theValue)
 
static Standard_OStreamPutExtChar (Standard_OStream &OS, const Standard_ExtCharacter theValue)
 
static Standard_IStreamGetReal (Standard_IStream &IS, Standard_Real &theValue)
 
static Standard_IStreamGetInteger (Standard_IStream &IS, Standard_Integer &theValue)
 
static Standard_IStreamGetBool (Standard_IStream &IS, Standard_Boolean &theValue)
 
static Standard_IStreamGetExtChar (Standard_IStream &IS, Standard_ExtCharacter &theValue)
 
static void Write (const TopoDS_Shape &theShape, Standard_OStream &theStream)
 Writes <theShape> on <theStream> in binary format. More...
 
static void Read (TopoDS_Shape &theShape, Standard_IStream &theStream)
 Reads a shape from <theStream> and returns it in <theShape>. More...
 
static Standard_Boolean Write (const TopoDS_Shape &theShape, const Standard_CString theFile)
 Writes <theShape> in <theFile>. More...
 
static Standard_Boolean Read (TopoDS_Shape &theShape, const Standard_CString theFile)
 Reads a shape from <theFile> and returns it in <theShape>. More...
 

Detailed Description

Tool to keep shapes in binary format.

Member Function Documentation

◆ GetBool()

static Standard_IStream& BinTools::GetBool ( Standard_IStream IS,
Standard_Boolean theValue 
)
static

◆ GetExtChar()

static Standard_IStream& BinTools::GetExtChar ( Standard_IStream IS,
Standard_ExtCharacter theValue 
)
static

◆ GetInteger()

static Standard_IStream& BinTools::GetInteger ( Standard_IStream IS,
Standard_Integer theValue 
)
static

◆ GetReal()

static Standard_IStream& BinTools::GetReal ( Standard_IStream IS,
Standard_Real theValue 
)
static

◆ PutBool()

static Standard_OStream& BinTools::PutBool ( Standard_OStream OS,
const Standard_Boolean  theValue 
)
static

◆ PutExtChar()

static Standard_OStream& BinTools::PutExtChar ( Standard_OStream OS,
const Standard_ExtCharacter  theValue 
)
static

◆ PutInteger()

static Standard_OStream& BinTools::PutInteger ( Standard_OStream OS,
const Standard_Integer  theValue 
)
static

◆ PutReal()

static Standard_OStream& BinTools::PutReal ( Standard_OStream OS,
const Standard_Real  theValue 
)
static

◆ Read() [1/2]

static void BinTools::Read ( TopoDS_Shape theShape,
Standard_IStream theStream 
)
static

Reads a shape from <theStream> and returns it in <theShape>.

◆ Read() [2/2]

static Standard_Boolean BinTools::Read ( TopoDS_Shape theShape,
const Standard_CString  theFile 
)
static

Reads a shape from <theFile> and returns it in <theShape>.

◆ Write() [1/2]

static void BinTools::Write ( const TopoDS_Shape theShape,
Standard_OStream theStream 
)
static

Writes <theShape> on <theStream> in binary format.

◆ Write() [2/2]

static Standard_Boolean BinTools::Write ( const TopoDS_Shape theShape,
const Standard_CString  theFile 
)
static

Writes <theShape> in <theFile>.


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