OCC.Core.BinLDrivers module¶
BinLDrivers module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_binldrivers.html
-
class
BinLDrivers_DocumentRetrievalDriver(*args)¶ Bases:
OCC.Core.PCDM.PCDM_RetrievalDriver- Constructor
- rtype
None
-
AttributeDrivers()¶ - Parameters
theMsgDriver –
- type theMsgDriver
opencascade::handle<Message_Messenger> &
- rtype
opencascade::handle<BinMDF_ADriverTable>
-
static
DownCast(t)¶
-
Read()¶ - retrieves the content of the file into a new Document.
- param theFileName
- type theFileName
TCollection_ExtendedString &
- param theNewDocument
- type theNewDocument
opencascade::handle<CDM_Document> &
- param theApplication
- type theApplication
opencascade::handle<CDM_Application> &
- rtype
void:param theIStream:
- type theIStream
Standard_IStream &
- param theStorageData
- type theStorageData
opencascade::handle<Storage_Data> &
- param theDoc
- type theDoc
opencascade::handle<CDM_Document> &
- param theApplication
- type theApplication
opencascade::handle<CDM_Application> &
- rtype
void
-
property
thisown¶ The membership flag
-
class
BinLDrivers_DocumentSection(*args)¶ Bases:
object- Empty constructor
- rtype
None* Constructor
- param theName
- type theName
TCollection_AsciiString &
- param isPostRead
- type isPostRead
bool
- rtype
None
-
IsPostRead()¶ - Query the status: if the Section should be read after OCAF; False means that the Section is read before starting to read OCAF data.
- rtype
bool
-
Length()¶ - Query the length of the section in the persistent file
- rtype
uint64_t
-
Name()¶ - Query the name of the section.
- rtype
TCollection_AsciiString
-
Offset()¶ - Query the offset of the section in the persistent file
- rtype
uint64_t
-
static
ReadTOC()¶ - Fill a DocumentSection instance from the data that are read from TOC.
- param theSection
- type theSection
BinLDrivers_DocumentSection &
- param theIS
- type theIS
Standard_IStream &
- param theDocFormatVersion
- type theDocFormatVersion
int
- rtype
void
-
SetLength()¶ - Set the length of the section in the persistent file
- param theLength
- type theLength
uint64_t
- rtype
None
-
SetOffset()¶ - Set the offset of the section in the persistent file
- param theOffset
- type theOffset
uint64_t
- rtype
None
-
Write()¶ - Save Offset and Length data into the Section entry in the Document TOC (list of sections)
- param theOS
- type theOS
Standard_OStream &
- param theOffset
- type theOffset
uint64_t
- rtype
None
-
WriteTOCToString(BinLDrivers_DocumentSection self) → std::string¶
-
property
thisown¶ The membership flag
-
class
BinLDrivers_DocumentStorageDriver(*args)¶ Bases:
OCC.Core.PCDM.PCDM_StorageDriver- Constructor
- rtype
None
-
AddSection()¶ - Create a section that should be written after the OCAF data
- param theName
- type theName
TCollection_AsciiString &
- param isPostRead
default value is Standard_True
- type isPostRead
bool
- rtype
None
-
AttributeDrivers()¶ - Parameters
theMsgDriver –
- type theMsgDriver
opencascade::handle<Message_Messenger> &
- rtype
opencascade::handle<BinMDF_ADriverTable>
-
static
DownCast(t)¶
-
Write()¶ - Write <theDocument> to the binary file <theFileName>
- param theDocument
- type theDocument
opencascade::handle<CDM_Document> &
- param theFileName
- type theFileName
TCollection_ExtendedString &
- rtype
void* Write <theDocument> to theOStream
- param theDocument
- type theDocument
opencascade::handle<CDM_Document> &
- param theOStream
- type theOStream
Standard_OStream &
- rtype
void
-
property
thisown¶ The membership flag
-
class
BinLDrivers_VectorOfDocumentSection(*args)¶ Bases:
object-
Append()¶
-
Appended()¶
-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
First()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
end()¶
-
property
thisown¶ The membership flag
-
-
class
SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance()¶
-
copy()¶
-
decr()¶
-
distance()¶
-
equal()¶
-
incr()¶
-
next()¶
-
previous()¶
-
property
thisown¶ The membership flag
-
value()¶
-
-
class
binldrivers(*args, **kwargs)¶ Bases:
object-
static
AttributeDrivers()¶ - Creates a table of the supported drivers’ types
- param MsgDrv
- type MsgDrv
opencascade::handle<Message_Messenger> &
- rtype
opencascade::handle<BinMDF_ADriverTable>
-
static
DefineFormat()¶ - Defines format ‘BinLOcaf’ and registers its read and write drivers in the specified application
- param theApp
- type theApp
opencascade::handle<TDocStd_Application> &
- rtype
void
-
static
Factory()¶ - Parameters
theGUID –
- type theGUID
Standard_GUID &
- rtype
opencascade::handle<Standard_Transient>
-
static
StorageVersion()¶ - returns last storage version
- rtype
TCollection_AsciiString
-
property
thisown¶ The membership flag
-
static