Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions
DE_Wrapper Class Reference

The main class for working with CAD file exchange. Loads and Saves special CAD transfer property. Consolidates all supported Formats and Vendors. Automatically recognizes CAD format and uses the preferred existed Vendor. Note: If Vendor's format is not binded, the configuration loading doesn't affect on its property. More...

#include <DE_Wrapper.hxx>

Inheritance diagram for DE_Wrapper:
Inheritance graph
[legend]

Public Member Functions

 DE_Wrapper ()
 Initializes all field by default.
 
 DE_Wrapper (const occ::handle< DE_Wrapper > &theWrapper)
 Copies values of all fields.
 
bool Read (const TCollection_AsciiString &thePath, const occ::handle< TDocStd_Document > &theDocument, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads a CAD file, according internal configuration.
 
bool Write (const TCollection_AsciiString &thePath, const occ::handle< TDocStd_Document > &theDocument, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes a CAD file, according internal configuration.
 
bool Read (const TCollection_AsciiString &thePath, const occ::handle< TDocStd_Document > &theDocument, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads a CAD file, according internal configuration.
 
bool Write (const TCollection_AsciiString &thePath, const occ::handle< TDocStd_Document > &theDocument, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes a CAD file, according internal configuration.
 
bool Read (const TCollection_AsciiString &thePath, TopoDS_Shape &theShape, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads a CAD file, according internal configuration.
 
bool Write (const TCollection_AsciiString &thePath, const TopoDS_Shape &theShape, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes a CAD file, according internal configuration.
 
bool Read (const TCollection_AsciiString &thePath, TopoDS_Shape &theShape, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads a CAD file, according internal configuration.
 
bool Write (const TCollection_AsciiString &thePath, const TopoDS_Shape &theShape, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes a CAD file, according internal configuration.
 
bool Read (DE_Provider::ReadStreamList &theStreams, const occ::handle< TDocStd_Document > &theDocument, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads streams according to internal configuration.
 
bool Write (DE_Provider::WriteStreamList &theStreams, const occ::handle< TDocStd_Document > &theDocument, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes streams according to internal configuration.
 
bool Read (DE_Provider::ReadStreamList &theStreams, const occ::handle< TDocStd_Document > &theDocument, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads streams according to internal configuration.
 
bool Write (DE_Provider::WriteStreamList &theStreams, const occ::handle< TDocStd_Document > &theDocument, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes streams according to internal configuration.
 
bool Read (DE_Provider::ReadStreamList &theStreams, TopoDS_Shape &theShape, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads streams according to internal configuration.
 
bool Write (DE_Provider::WriteStreamList &theStreams, const TopoDS_Shape &theShape, occ::handle< XSControl_WorkSession > &theWS, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes streams according to internal configuration.
 
bool Read (DE_Provider::ReadStreamList &theStreams, TopoDS_Shape &theShape, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Reads streams according to internal configuration.
 
bool Write (DE_Provider::WriteStreamList &theStreams, const TopoDS_Shape &theShape, const Message_ProgressRange &theProgress=Message_ProgressRange())
 Writes streams according to internal configuration.
 
bool Load (const TCollection_AsciiString &theResource="", const bool theIsRecursive=true)
 Updates values according the resource file.
 
bool Load (const occ::handle< DE_ConfigurationContext > &theResource, const bool theIsRecursive=true)
 Updates values according the resource.
 
bool Save (const TCollection_AsciiString &theResourcePath, const bool theIsRecursive=true, const NCollection_List< TCollection_AsciiString > &theFormats=NCollection_List< TCollection_AsciiString >(), const NCollection_List< TCollection_AsciiString > &theVendors=NCollection_List< TCollection_AsciiString >())
 Writes configuration to the resource file.
 
TCollection_AsciiString Save (const bool theIsRecursive=true, const NCollection_List< TCollection_AsciiString > &theFormats=NCollection_List< TCollection_AsciiString >(), const NCollection_List< TCollection_AsciiString > &theVendors=NCollection_List< TCollection_AsciiString >())
 Writes configuration to the string.
 
bool Bind (const occ::handle< DE_ConfigurationNode > &theNode)
 Creates new node copy and adds to the map.
 
bool UnBind (const occ::handle< DE_ConfigurationNode > &theNode)
 Removes node with the same type from the map.
 
bool Find (const TCollection_AsciiString &theFormat, const TCollection_AsciiString &theVendor, occ::handle< DE_ConfigurationNode > &theNode) const
 Finds a node associated with input format and vendor.
 
void ChangePriority (const TCollection_AsciiString &theFormat, const NCollection_List< TCollection_AsciiString > &theVendorPriority, const bool theToDisable=false)
 Changes provider priority to one format if it exists.
 
void ChangePriority (const NCollection_List< TCollection_AsciiString > &theVendorPriority, const bool theToDisable=false)
 Changes provider priority to all loaded nodes.
 
virtual bool FindProvider (const TCollection_AsciiString &thePath, const bool theToImport, occ::handle< DE_Provider > &theProvider) const
 Find available provider from the configuration. If there are several providers, choose the one with the highest priority.
 
virtual bool FindReadProvider (const TCollection_AsciiString &thePath, const bool theCheckContent, occ::handle< DE_Provider > &theProvider) const
 Find available read provider from the configuration for file-based operations. If there are several providers, choose the one with the highest priority.
 
virtual bool FindReadProvider (const TCollection_AsciiString &thePath, std::istream &theStream, occ::handle< DE_Provider > &theProvider) const
 Find available read provider from the configuration for stream-based operations. If there are several providers, choose the one with the highest priority.
 
virtual bool FindWriteProvider (const TCollection_AsciiString &thePath, occ::handle< DE_Provider > &theProvider) const
 Find available write provider from the configuration. If there are several providers, choose the one with the highest priority.
 
void UpdateLoad (const bool theToForceUpdate=false) const
 Updates all registered nodes, all changes will be saved in nodes.
 
bool KeepUpdates () const
 Gets flag that keeps changes on configuration nodes which are being updated, false by default.
 
void SetKeepUpdates (const bool theToKeepUpdates)
 Sets flag that keeps changes on configuration nodes which are being updated, false by default.
 
const NCollection_DataMap< TCollection_AsciiString, NCollection_IndexedDataMap< TCollection_AsciiString, occ::handle< DE_ConfigurationNode > > > & Nodes () const
 Gets format map, contains vendor map with nodes.
 
virtual occ::handle< DE_WrapperCopy () const
 Copies values of all fields.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()=default
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
bool IsInstance (const char *const theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
bool IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
bool IsKind (const char *const theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
 
int GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
 
int DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Static Public Member Functions

static const occ::handle< DE_Wrapper > & GlobalWrapper ()
 Gets global configuration singleton. If wrapper is not set, create it by default as base class object.
 
static void SetGlobalWrapper (const occ::handle< DE_Wrapper > &theWrapper)
 Sets global configuration singleton.
 
static std::mutex & GlobalLoadMutex ()
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 

Data Fields

DE_ConfigurationNode::DE_SectionGlobal GlobalParameters
 Internal parameters for the all translators.
 

Protected Member Functions

void sort (const occ::handle< DE_ConfigurationContext > &theResource)
 Sorts the vendors according to the priority to work Formats omitted from the resource are not modified Vendors omitted from the format scope are disabled.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 

Detailed Description

The main class for working with CAD file exchange. Loads and Saves special CAD transfer property. Consolidates all supported Formats and Vendors. Automatically recognizes CAD format and uses the preferred existed Vendor. Note: If Vendor's format is not binded, the configuration loading doesn't affect on its property.

Nodes are grouped by Vendor's name and Format's type. The Vendors may have the same supported CAD formats. Use a Vendor's priority for transfer operations.

The algorithm for standalone transfer operation: 1) Work with global wrapper directly or make deep copy and work with it 2) Update the supported vendors and formats 2.1) Create and initialize specialized configuration node of the required format and Vendor. 2.2) Bind the created node to the internal map(::Bind) 3) Configure the transfer property by resource string or file (Load) 3.1) Configuration can disable or enable some Vendors and formats 3.2) Configuration can change the priority of Vendors 4) Initiate the transfer process by calling "::Write" or "::Read" methods 5) Validate the transfer process output

Constructor & Destructor Documentation

◆ DE_Wrapper() [1/2]

DE_Wrapper::DE_Wrapper ( )

Initializes all field by default.

◆ DE_Wrapper() [2/2]

DE_Wrapper::DE_Wrapper ( const occ::handle< DE_Wrapper > & theWrapper)

Copies values of all fields.

Parameters
[in]theWrapperobject to copy

Member Function Documentation

◆ Bind()

bool DE_Wrapper::Bind ( const occ::handle< DE_ConfigurationNode > & theNode)

Creates new node copy and adds to the map.

Parameters
[in]theNodeinput node to copy
Returns
true if binded

◆ ChangePriority() [1/2]

void DE_Wrapper::ChangePriority ( const NCollection_List< TCollection_AsciiString > & theVendorPriority,
const bool theToDisable = false )

Changes provider priority to all loaded nodes.

Parameters
[in]theVendorPrioritypriority of work with vendors
[in]theToDisableflag for disabling nodes that are not included in the priority

◆ ChangePriority() [2/2]

void DE_Wrapper::ChangePriority ( const TCollection_AsciiString & theFormat,
const NCollection_List< TCollection_AsciiString > & theVendorPriority,
const bool theToDisable = false )

Changes provider priority to one format if it exists.

Parameters
[in]theFormatinput node CAD format
[in]theVendorPrioritypriority of work with vendors
[in]theToDisableflag for disabling nodes that are not included in the priority

◆ Copy()

virtual occ::handle< DE_Wrapper > DE_Wrapper::Copy ( ) const
virtual

Copies values of all fields.

Returns
new object with the same field values

◆ Find()

bool DE_Wrapper::Find ( const TCollection_AsciiString & theFormat,
const TCollection_AsciiString & theVendor,
occ::handle< DE_ConfigurationNode > & theNode ) const

Finds a node associated with input format and vendor.

Parameters
[in]theFormatinput node CAD format
[in]theVendorinput node vendor name
[out]theNodeoutput node
Returns
true if the node is found

◆ FindProvider()

virtual bool DE_Wrapper::FindProvider ( const TCollection_AsciiString & thePath,
const bool theToImport,
occ::handle< DE_Provider > & theProvider ) const
virtual

Find available provider from the configuration. If there are several providers, choose the one with the highest priority.

Parameters
[in]thePathpath to the CAD file
[in]theToImportflag to finds for import. true-import, false-export
[out]theProvidercreated new provider
Returns
true if provider found and created

◆ FindReadProvider() [1/2]

virtual bool DE_Wrapper::FindReadProvider ( const TCollection_AsciiString & thePath,
const bool theCheckContent,
occ::handle< DE_Provider > & theProvider ) const
virtual

Find available read provider from the configuration for file-based operations. If there are several providers, choose the one with the highest priority.

Parameters
[in]thePathpath to the CAD file (for extension and content checking)
[in]theCheckContentflag to enable content checking via file reading
[out]theProvidercreated new provider
Returns
true if provider found and created

◆ FindReadProvider() [2/2]

virtual bool DE_Wrapper::FindReadProvider ( const TCollection_AsciiString & thePath,
std::istream & theStream,
occ::handle< DE_Provider > & theProvider ) const
virtual

Find available read provider from the configuration for stream-based operations. If there are several providers, choose the one with the highest priority.

Parameters
[in]thePathpath to the CAD file (for extension extraction)
[in]theStreaminput stream for content checking
[out]theProvidercreated new provider
Returns
true if provider found and created

◆ FindWriteProvider()

virtual bool DE_Wrapper::FindWriteProvider ( const TCollection_AsciiString & thePath,
occ::handle< DE_Provider > & theProvider ) const
virtual

Find available write provider from the configuration. If there are several providers, choose the one with the highest priority.

Parameters
[in]thePathpath to the CAD file (for extension checking only)
[out]theProvidercreated new provider
Returns
true if provider found and created

◆ GlobalLoadMutex()

static std::mutex & DE_Wrapper::GlobalLoadMutex ( )
static

◆ GlobalWrapper()

static const occ::handle< DE_Wrapper > & DE_Wrapper::GlobalWrapper ( )
static

Gets global configuration singleton. If wrapper is not set, create it by default as base class object.

Returns
point to global configuration

◆ KeepUpdates()

bool DE_Wrapper::KeepUpdates ( ) const
inline

Gets flag that keeps changes on configuration nodes which are being updated, false by default.

◆ Load() [1/2]

bool DE_Wrapper::Load ( const occ::handle< DE_ConfigurationContext > & theResource,
const bool theIsRecursive = true )

Updates values according the resource.

Parameters
[in]theResourceinput resource to use
[in]theIsRecursiveflag to update all nodes
Returns
true if theResource has loaded correctly

◆ Load() [2/2]

bool DE_Wrapper::Load ( const TCollection_AsciiString & theResource = "",
const bool theIsRecursive = true )

Updates values according the resource file.

Parameters
[in]theResourcefile path to resource or resource value
[in]theIsRecursiveflag to update all nodes
Returns
true if theResource has loaded correctly

◆ Nodes()

Gets format map, contains vendor map with nodes.

Returns
internal map of formats

◆ Read() [1/8]

bool DE_Wrapper::Read ( const TCollection_AsciiString & thePath,
const occ::handle< TDocStd_Document > & theDocument,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads a CAD file, according internal configuration.

Parameters
[in]thePathpath to the import CAD file
[out]theDocumentdocument to save result
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [2/8]

bool DE_Wrapper::Read ( const TCollection_AsciiString & thePath,
const occ::handle< TDocStd_Document > & theDocument,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads a CAD file, according internal configuration.

Parameters
[in]thePathpath to the import CAD file
[out]theDocumentdocument to save result
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [3/8]

bool DE_Wrapper::Read ( const TCollection_AsciiString & thePath,
TopoDS_Shape & theShape,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads a CAD file, according internal configuration.

Parameters
[in]thePathpath to the import CAD file
[out]theShapeshape to save result
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [4/8]

bool DE_Wrapper::Read ( const TCollection_AsciiString & thePath,
TopoDS_Shape & theShape,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads a CAD file, according internal configuration.

Parameters
[in]thePathpath to the import CAD file
[out]theShapeshape to save result
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [5/8]

bool DE_Wrapper::Read ( DE_Provider::ReadStreamList & theStreams,
const occ::handle< TDocStd_Document > & theDocument,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads streams according to internal configuration.

Parameters
[in]theStreamsstreams to read from
[out]theDocumentdocument to save result
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [6/8]

bool DE_Wrapper::Read ( DE_Provider::ReadStreamList & theStreams,
const occ::handle< TDocStd_Document > & theDocument,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads streams according to internal configuration.

Parameters
[in]theStreamsstreams to read from
[out]theDocumentdocument to save result
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [7/8]

bool DE_Wrapper::Read ( DE_Provider::ReadStreamList & theStreams,
TopoDS_Shape & theShape,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads streams according to internal configuration.

Parameters
[in]theStreamsstreams to read from
[out]theShapeshape to save result
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Read() [8/8]

bool DE_Wrapper::Read ( DE_Provider::ReadStreamList & theStreams,
TopoDS_Shape & theShape,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Reads streams according to internal configuration.

Parameters
[in]theStreamsstreams to read from
[out]theShapeshape to save result
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Read operation has ended correctly

◆ Save() [1/2]

Writes configuration to the string.

Parameters
[in]theIsRecursiveflag to write values of all nodes
[in]theFormatslist of formats to save. If empty, saves all available
[in]theVendorslist of providers to save. If empty, saves all available
Returns
result resource string

◆ Save() [2/2]

bool DE_Wrapper::Save ( const TCollection_AsciiString & theResourcePath,
const bool theIsRecursive = true,
const NCollection_List< TCollection_AsciiString > & theFormats = NCollection_ListTCollection_AsciiString >(),
const NCollection_List< TCollection_AsciiString > & theVendors = NCollection_ListTCollection_AsciiString >() )

Writes configuration to the resource file.

Parameters
[in]theResourcePathfile path to resource
[in]theIsRecursiveflag to write values of all nodes
[in]theFormatslist of formats to save. If empty, saves all available
[in]theVendorslist of providers to save. If empty, saves all available
Returns
true if the Configuration has saved correctly

◆ SetGlobalWrapper()

static void DE_Wrapper::SetGlobalWrapper ( const occ::handle< DE_Wrapper > & theWrapper)
static

Sets global configuration singleton.

Parameters
[in]theWrapperobject to set as global configuration

◆ SetKeepUpdates()

void DE_Wrapper::SetKeepUpdates ( const bool theToKeepUpdates)
inline

Sets flag that keeps changes on configuration nodes which are being updated, false by default.

◆ sort()

void DE_Wrapper::sort ( const occ::handle< DE_ConfigurationContext > & theResource)
protected

Sorts the vendors according to the priority to work Formats omitted from the resource are not modified Vendors omitted from the format scope are disabled.

Parameters
[in]theResourceresource to get priority

◆ UnBind()

bool DE_Wrapper::UnBind ( const occ::handle< DE_ConfigurationNode > & theNode)

Removes node with the same type from the map.

Parameters
[in]theNodeinput node to remove the same
Returns
true if removed

◆ UpdateLoad()

void DE_Wrapper::UpdateLoad ( const bool theToForceUpdate = false) const

Updates all registered nodes, all changes will be saved in nodes.

Parameters
[in]theToForceUpdateflag that turns on/of nodes, according to updated ability to import/export

◆ Write() [1/8]

bool DE_Wrapper::Write ( const TCollection_AsciiString & thePath,
const occ::handle< TDocStd_Document > & theDocument,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes a CAD file, according internal configuration.

Parameters
[in]thePathpath to the export CAD file
[out]theDocumentdocument to export
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [2/8]

bool DE_Wrapper::Write ( const TCollection_AsciiString & thePath,
const occ::handle< TDocStd_Document > & theDocument,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes a CAD file, according internal configuration.

Parameters
[in]thePathpath to the export CAD file
[out]theDocumentdocument to export
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [3/8]

bool DE_Wrapper::Write ( const TCollection_AsciiString & thePath,
const TopoDS_Shape & theShape,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes a CAD file, according internal configuration.

Parameters
[in]thePathpath to the export CAD file
[out]theShapeshape to export
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [4/8]

bool DE_Wrapper::Write ( const TCollection_AsciiString & thePath,
const TopoDS_Shape & theShape,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes a CAD file, according internal configuration.

Parameters
[in]thePathpath to the export CAD file
[out]theShapeshape to export
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [5/8]

bool DE_Wrapper::Write ( DE_Provider::WriteStreamList & theStreams,
const occ::handle< TDocStd_Document > & theDocument,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes streams according to internal configuration.

Parameters
[in]theStreamsstreams to write to
[out]theDocumentdocument to export
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [6/8]

bool DE_Wrapper::Write ( DE_Provider::WriteStreamList & theStreams,
const occ::handle< TDocStd_Document > & theDocument,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes streams according to internal configuration.

Parameters
[in]theStreamsstreams to write to
[out]theDocumentdocument to export
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [7/8]

bool DE_Wrapper::Write ( DE_Provider::WriteStreamList & theStreams,
const TopoDS_Shape & theShape,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes streams according to internal configuration.

Parameters
[in]theStreamsstreams to write to
[out]theShapeshape to export
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

◆ Write() [8/8]

bool DE_Wrapper::Write ( DE_Provider::WriteStreamList & theStreams,
const TopoDS_Shape & theShape,
occ::handle< XSControl_WorkSession > & theWS,
const Message_ProgressRange & theProgress = Message_ProgressRange() )

Writes streams according to internal configuration.

Parameters
[in]theStreamsstreams to write to
[out]theShapeshape to export
[in]theWScurrent work session
[in]theProgressprogress indicator
Returns
true if Write operation has ended correctly

Field Documentation

◆ GlobalParameters

DE_ConfigurationNode::DE_SectionGlobal DE_Wrapper::GlobalParameters

Internal parameters for the all translators.


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