Open CASCADE Technology  7.5.0
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_OStreamPutShortReal (Standard_OStream &OS, const Standard_ShortReal &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_IStreamGetShortReal (Standard_IStream &IS, Standard_ShortReal &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, const Message_ProgressRange &theRange=Message_ProgressRange())
 Writes <theShape> on <theStream> in binary format. More...
 
static void Read (TopoDS_Shape &theShape, Standard_IStream &theStream, const Message_ProgressRange &theRange=Message_ProgressRange())
 Reads a shape from <theStream> and returns it in <theShape>. More...
 
static Standard_Boolean Write (const TopoDS_Shape &theShape, const Standard_CString theFile, const Message_ProgressRange &theRange=Message_ProgressRange())
 Writes <theShape> in <theFile>. More...
 
static Standard_Boolean Read (TopoDS_Shape &theShape, const Standard_CString theFile, const Message_ProgressRange &theRange=Message_ProgressRange())
 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

◆ GetShortReal()

static Standard_IStream& BinTools::GetShortReal ( Standard_IStream IS,
Standard_ShortReal 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

◆ PutShortReal()

static Standard_OStream& BinTools::PutShortReal ( Standard_OStream OS,
const Standard_ShortReal theValue 
)
static

◆ Read() [1/2]

static void BinTools::Read ( TopoDS_Shape theShape,
Standard_IStream theStream,
const Message_ProgressRange theRange = Message_ProgressRange() 
)
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,
const Message_ProgressRange theRange = Message_ProgressRange() 
)
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,
const Message_ProgressRange theRange = Message_ProgressRange() 
)
static

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

◆ Write() [2/2]

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

Writes <theShape> in <theFile>.


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