Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
StepData_WriterLib Class Reference

#include <StepData_WriterLib.hxx>

Public Member Functions

 StepData_WriterLib (const occ::handle< StepData_Protocol > &aprotocol)
 Creates a Library which complies with a Protocol, that is : Same class (criterium IsInstance) This creation gets the Modules from the global set, those which are bound to the given Protocol and its Resources.
 
 StepData_WriterLib ()
 Creates an empty Library : it will later by filled by method AddProtocol.
 
void AddProtocol (const occ::handle< Standard_Transient > &aprotocol)
 Adds a couple (Module-Protocol) to the Library, given the class of a Protocol. Takes Resources into account. (if <aprotocol> is not of type TheProtocol, it is not added)
 
void Clear ()
 Clears the list of Modules of a library (can be used to redefine the order of Modules before action : Clear then refill the Library by calls to AddProtocol)
 
void SetComplete ()
 Sets a library to be defined with the complete Global list (all the couples Protocol/Modules recorded in it)
 
bool Select (const occ::handle< Standard_Transient > &obj, occ::handle< StepData_ReadWriteModule > &module, int &CN) const
 Selects a Module from the Library, given an Object. Returns True if Select has succeeded, False else. Also Returns (as arguments) the selected Module and the Case Number determined by the associated Protocol. If Select has failed, <module> is Null Handle and CN is zero. (Select can work on any criterium, such as Object DynamicType)
 
void Start ()
 Starts Iteration on the Modules (sets it on the first one)
 
bool More () const
 Returns True if there are more Modules to iterate on.
 
void Next ()
 Iterates by getting the next Module in the list If there is none, the exception will be raised by Value.
 
const occ::handle< StepData_ReadWriteModule > & Module () const
 Returns the current Module in the Iteration.
 
const occ::handle< StepData_Protocol > & Protocol () const
 Returns the current Protocol in the Iteration.
 

Static Public Member Functions

static void SetGlobal (const occ::handle< StepData_ReadWriteModule > &amodule, const occ::handle< StepData_Protocol > &aprotocol)
 Adds a couple (Module-Protocol) into the global definition set for this class of Library.
 

Constructor & Destructor Documentation

◆ StepData_WriterLib() [1/2]

StepData_WriterLib::StepData_WriterLib ( const occ::handle< StepData_Protocol > & aprotocol)

Creates a Library which complies with a Protocol, that is : Same class (criterium IsInstance) This creation gets the Modules from the global set, those which are bound to the given Protocol and its Resources.

◆ StepData_WriterLib() [2/2]

StepData_WriterLib::StepData_WriterLib ( )

Creates an empty Library : it will later by filled by method AddProtocol.

Member Function Documentation

◆ AddProtocol()

void StepData_WriterLib::AddProtocol ( const occ::handle< Standard_Transient > & aprotocol)

Adds a couple (Module-Protocol) to the Library, given the class of a Protocol. Takes Resources into account. (if <aprotocol> is not of type TheProtocol, it is not added)

◆ Clear()

void StepData_WriterLib::Clear ( )

Clears the list of Modules of a library (can be used to redefine the order of Modules before action : Clear then refill the Library by calls to AddProtocol)

◆ Module()

const occ::handle< StepData_ReadWriteModule > & StepData_WriterLib::Module ( ) const

Returns the current Module in the Iteration.

◆ More()

bool StepData_WriterLib::More ( ) const

Returns True if there are more Modules to iterate on.

◆ Next()

void StepData_WriterLib::Next ( )

Iterates by getting the next Module in the list If there is none, the exception will be raised by Value.

◆ Protocol()

const occ::handle< StepData_Protocol > & StepData_WriterLib::Protocol ( ) const

Returns the current Protocol in the Iteration.

◆ Select()

bool StepData_WriterLib::Select ( const occ::handle< Standard_Transient > & obj,
occ::handle< StepData_ReadWriteModule > & module,
int & CN ) const

Selects a Module from the Library, given an Object. Returns True if Select has succeeded, False else. Also Returns (as arguments) the selected Module and the Case Number determined by the associated Protocol. If Select has failed, <module> is Null Handle and CN is zero. (Select can work on any criterium, such as Object DynamicType)

◆ SetComplete()

void StepData_WriterLib::SetComplete ( )

Sets a library to be defined with the complete Global list (all the couples Protocol/Modules recorded in it)

◆ SetGlobal()

static void StepData_WriterLib::SetGlobal ( const occ::handle< StepData_ReadWriteModule > & amodule,
const occ::handle< StepData_Protocol > & aprotocol )
static

Adds a couple (Module-Protocol) into the global definition set for this class of Library.

◆ Start()

void StepData_WriterLib::Start ( )

Starts Iteration on the Modules (sets it on the first one)


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