|
Open CASCADE Technology 7.9.3
|
#include <IGESData_SpecificLib.hxx>
Public Member Functions | |
| IGESData_SpecificLib (const Handle< IGESData_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. | |
| IGESData_SpecificLib () | |
| Creates an empty Library : it will later by filled by method AddProtocol. | |
| void | AddProtocol (const 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). | |
| Standard_Boolean | Select (const Handle< IGESData_IGESEntity > &obj, Handle< IGESData_SpecificModule > &module, Standard_Integer &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). | |
| Standard_Boolean | 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 Handle< IGESData_SpecificModule > & | Module () const |
| Returns the current Module in the Iteration. | |
| const Handle< IGESData_Protocol > & | Protocol () const |
| Returns the current Protocol in the Iteration. | |
Static Public Member Functions | |
| static void | SetGlobal (const Handle< IGESData_SpecificModule > &amodule, const Handle< IGESData_Protocol > &aprotocol) |
| Adds a couple (Module-Protocol) into the global definition set for this class of Library. | |
| IGESData_SpecificLib::IGESData_SpecificLib | ( | const Handle< IGESData_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.
| IGESData_SpecificLib::IGESData_SpecificLib | ( | ) |
Creates an empty Library : it will later by filled by method AddProtocol.
| void IGESData_SpecificLib::AddProtocol | ( | const 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 IGESData_SpecificLib::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).
| const Handle< IGESData_SpecificModule > & IGESData_SpecificLib::Module | ( | ) | const |
Returns the current Module in the Iteration.
| Standard_Boolean IGESData_SpecificLib::More | ( | ) | const |
Returns True if there are more Modules to iterate on.
| void IGESData_SpecificLib::Next | ( | ) |
Iterates by getting the next Module in the list If there is none, the exception will be raised by Value.
| const Handle< IGESData_Protocol > & IGESData_SpecificLib::Protocol | ( | ) | const |
Returns the current Protocol in the Iteration.
| Standard_Boolean IGESData_SpecificLib::Select | ( | const Handle< IGESData_IGESEntity > & | obj, |
| Handle< IGESData_SpecificModule > & | module, | ||
| Standard_Integer & | 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 IGESData_SpecificLib::SetComplete | ( | ) |
Sets a library to be defined with the complete Global list (all the couples Protocol/Modules recorded in it).
|
static |
Adds a couple (Module-Protocol) into the global definition set for this class of Library.
| void IGESData_SpecificLib::Start | ( | ) |
Starts Iteration on the Modules (sets it on the first one).