Files
OCCT/src/Transfer/Transfer_ActorDispatch.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

80 lines
3.5 KiB
Plaintext
Executable File

-- Created on: 1994-05-24
-- Created by: Christian CAILLET
-- Copyright (c) 1994-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class ActorDispatch from Transfer inherits ActorOfTransientProcess
---Purpose : 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 :
-- - ActorDispatch itself acts as a default actor, i.e. it copies
-- entities with the general service Copy, as CopyTool does
-- - it allows to add other actors for specific ways of transfer,
-- which may include data modifications, conversions ...
-- - and other features from TransferDispatch (such as mapping
-- other than one-one)
uses Transient, InterfaceModel, GeneralLib, Protocol from Interface,
TransferDispatch, TransientProcess, Binder
raises InterfaceError
is
Create (amodel : InterfaceModel; lib : GeneralLib)
returns mutable ActorDispatch;
---Purpose : 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>
Create (amodel : InterfaceModel; protocol : Protocol from Interface)
returns mutable ActorDispatch;
---Purpose : Same as above, but Library is defined through a Protocol
Create (amodel : InterfaceModel) returns mutable ActorDispatch
---Purpose : Same as above, but works with the Active Protocol
raises InterfaceError;
-- Error if no Active Protocol is defined
AddActor (me : mutable; actor : mutable ActorOfTransientProcess from Transfer);
---Purpose : Utility which adds an actor to the default <me> (it calls
-- SetActor from the TransientProcess)
TransferDispatch (me : mutable) returns TransferDispatch;
---Purpose : Returns the TransferDispatch, which does the work, records
-- the intermediate data, etc...
-- See TransferDispatch & CopyTool, to see the available methods
---C++ : return &
Transfer (me : mutable; start : Transient; TP : mutable TransientProcess)
returns mutable Binder is redefined;
---Purpose : Specific action : it calls the method Transfer from CopyTool
-- i.e. the general service Copy, then returns the Binder
-- produced by the TransientProcess
fields
thetool : TransferDispatch;
end ActorDispatch;