Open CASCADE Technology 7.8.0
Public Member Functions
Transfer_ActorDispatch Class Reference

This class allows to work with a TransferDispatch, i.e. to transfer entities from a data set to another one defined by the same interface norm, with the following features : More...

#include <Transfer_ActorDispatch.hxx>

Inheritance diagram for Transfer_ActorDispatch:
Inheritance graph
[legend]

Public Member Functions

 Transfer_ActorDispatch (const Handle< Interface_InterfaceModel > &amodel, const Interface_GeneralLib &lib)
 Creates an ActorDispatch from a Model. Works with a General Service Library, given as an Argument This causes TransferDispatch and its TransientProcess to be created, with default actor <me>
 
 Transfer_ActorDispatch (const Handle< Interface_InterfaceModel > &amodel, const Handle< Interface_Protocol > &protocol)
 Same as above, but Library is defined through a Protocol.
 
 Transfer_ActorDispatch (const Handle< Interface_InterfaceModel > &amodel)
 Same as above, but works with the Active Protocol.
 
void AddActor (const Handle< Transfer_ActorOfTransientProcess > &actor)
 Utility which adds an actor to the default <me> (it calls SetActor from the TransientProcess)
 
Transfer_TransferDispatchTransferDispatch ()
 Returns the TransferDispatch, which does the work, records the intermediate data, etc... See TransferDispatch & CopyTool, to see the available methods.
 
virtual Handle< Transfer_BinderTransfer (const Handle< Standard_Transient > &start, const Handle< Transfer_TransientProcess > &TP, const Message_ProgressRange &theProgress=Message_ProgressRange()) override
 Specific action : it calls the method Transfer from CopyTool i.e. the general service Copy, then returns the Binder produced by the TransientProcess.
 
- Public Member Functions inherited from Transfer_ActorOfTransientProcess
 Transfer_ActorOfTransientProcess ()
 
virtual Handle< Transfer_BinderTransferring (const Handle< Standard_Transient > &start, const Handle< Transfer_ProcessForTransient > &TP, const Message_ProgressRange &theProgress=Message_ProgressRange()) override
 Specific action of Transfer. The Result is stored in the returned Binder, or a Null Handle for "No result" (Default defined as doing nothing; should be deferred) "mutable" allows the Actor to record intermediate information, in addition to those of TransferProcess.
 
virtual Handle< Standard_TransientTransferTransient (const Handle< Standard_Transient > &start, const Handle< Transfer_TransientProcess > &TP, const Message_ProgressRange &theProgress=Message_ProgressRange())
 
- Public Member Functions inherited from Transfer_ActorOfProcessForTransient
 Transfer_ActorOfProcessForTransient ()
 
virtual Standard_Boolean Recognize (const Handle< Standard_Transient > &start)
 Prerequesite for Transfer : the method Transfer is called on a starting object only if Recognize has returned True on it This allows to define a list of Actors, each one processing a definite kind of data TransferProcess calls Recognize on each one before calling Transfer. But even if Recognize has returned True, Transfer can reject by returning a Null Binder (afterwards rejection), the next actor is then invoked.
 
Handle< Transfer_SimpleBinderOfTransientTransientResult (const Handle< Standard_Transient > &res) const
 Prepares and Returns a Binder for a Transient Result Returns a Null Handle if <res> is itself Null.
 
Handle< Transfer_BinderNullResult () const
 Returns a Binder for No Result, i.e. a Null Handle.
 
void SetLast (const Standard_Boolean mode=Standard_True)
 If <mode> is True, commands an Actor to be set at the end of the list of Actors (see SetNext) If it is False (creation default), each add Actor is set at the beginning of the list This allows to define default Actors (which are Last)
 
Standard_Boolean IsLast () const
 Returns the Last status (see SetLast).
 
void SetNext (const Handle< Transfer_ActorOfProcessForTransient > &next)
 Defines a Next Actor : it can then be asked to work if <me> produces no result for a given type of Object. If Next is already set and is not "Last", calls SetNext on it. If Next defined and "Last", the new actor is added before it in the list.
 
Handle< Transfer_ActorOfProcessForTransientNext () const
 Returns the Actor defined as Next, or a Null Handle.
 
- 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 ()
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
Standard_Boolean 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.
 
Standard_Boolean IsKind (const Standard_CString 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.
 
Standard_Integer GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object.
 
Standard_Integer DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- 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.
 

Detailed Description

This class allows to work with a TransferDispatch, i.e. to transfer entities from a data set to another one defined by the same interface norm, with the following features :

Constructor & Destructor Documentation

◆ Transfer_ActorDispatch() [1/3]

Transfer_ActorDispatch::Transfer_ActorDispatch ( const Handle< Interface_InterfaceModel > &  amodel,
const Interface_GeneralLib lib 
)

Creates an ActorDispatch from a Model. Works with a General Service Library, given as an Argument This causes TransferDispatch and its TransientProcess to be created, with default actor <me>

◆ Transfer_ActorDispatch() [2/3]

Transfer_ActorDispatch::Transfer_ActorDispatch ( const Handle< Interface_InterfaceModel > &  amodel,
const Handle< Interface_Protocol > &  protocol 
)

Same as above, but Library is defined through a Protocol.

◆ Transfer_ActorDispatch() [3/3]

Transfer_ActorDispatch::Transfer_ActorDispatch ( const Handle< Interface_InterfaceModel > &  amodel)

Same as above, but works with the Active Protocol.

Member Function Documentation

◆ AddActor()

void Transfer_ActorDispatch::AddActor ( const Handle< Transfer_ActorOfTransientProcess > &  actor)

Utility which adds an actor to the default <me> (it calls SetActor from the TransientProcess)

◆ Transfer()

virtual Handle< Transfer_Binder > Transfer_ActorDispatch::Transfer ( const Handle< Standard_Transient > &  start,
const Handle< Transfer_TransientProcess > &  TP,
const Message_ProgressRange theProgress = Message_ProgressRange() 
)
overridevirtual

Specific action : it calls the method Transfer from CopyTool i.e. the general service Copy, then returns the Binder produced by the TransientProcess.

Reimplemented from Transfer_ActorOfTransientProcess.

◆ TransferDispatch()

Transfer_TransferDispatch & Transfer_ActorDispatch::TransferDispatch ( )

Returns the TransferDispatch, which does the work, records the intermediate data, etc... See TransferDispatch & CopyTool, to see the available methods.


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