Open CASCADE Technology 6.6.0
|
A TransferDispatch is aimed to dispatch Entities between two
Interface Models, by default by copying them, as CopyTool, but
with more capabilities of adapting : Copy is redefined to
firstly pass the hand to a TransferProcess. If this gives no
result, standard Copy is called.
This allow, for instance, to modify the copied Entity (such as
changing a Name for a VDA Entity), or to do a deeper work
(such as Substituting a kind of Entity to another one).
For these reasons, TransferDispatch is basically a CopyTool,
but uses a more sophiscated control, which is TransferProcess,
and its method Copy is redefined
#include <Transfer_TransferDispatch.hxx>
Public Member Functions | |
Transfer_TransferDispatch (const Handle< Interface_InterfaceModel > &amodel, const Interface_GeneralLib &lib) | |
Creates a TransferDispatch from a Model. Works with a General Service Library, given as an Argument A TransferDispatch is created as a CopyTool in which the Control is set to TransientProcess | |
Transfer_TransferDispatch (const Handle< Interface_InterfaceModel > &amodel, const Handle< Interface_Protocol > &protocol) | |
Same as above, but Library is defined through a Protocol | |
Transfer_TransferDispatch (const Handle< Interface_InterfaceModel > &amodel) | |
Same as above, but works with the Active Protocol | |
Handle_Transfer_TransientProcess | TransientProcess () const |
Returns the content of Control Object, as a TransientProcess | |
virtual Standard_Boolean | Copy (const Handle< Standard_Transient > &entfrom, Handle< Standard_Transient > &entto, const Standard_Boolean mapped, const Standard_Boolean errstat) |
Copies an Entity by calling the method Transferring from the TransferProcess. If this called produces a Null Binder, then the standard, inherited Copy is called |
Transfer_TransferDispatch::Transfer_TransferDispatch | ( | const Handle< Interface_InterfaceModel > & | amodel, |
const Interface_GeneralLib & | lib | ||
) |
Transfer_TransferDispatch::Transfer_TransferDispatch | ( | const Handle< Interface_InterfaceModel > & | amodel, |
const Handle< Interface_Protocol > & | protocol | ||
) |
Transfer_TransferDispatch::Transfer_TransferDispatch | ( | const Handle< Interface_InterfaceModel > & | amodel | ) |
virtual Standard_Boolean Transfer_TransferDispatch::Copy | ( | const Handle< Standard_Transient > & | entfrom, |
Handle< Standard_Transient > & | entto, | ||
const Standard_Boolean | mapped, | ||
const Standard_Boolean | errstat | ||
) | [virtual] |
Reimplemented from Interface_CopyTool.
Handle_Transfer_TransientProcess Transfer_TransferDispatch::TransientProcess | ( | ) | const |