|
|
|||
File indexing completed on 2026-08-31 09:19:27
0001 // Created on: 1994-05-24 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1994-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Transfer_ActorDispatch_HeaderFile 0018 #define _Transfer_ActorDispatch_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Transfer_TransferDispatch.hxx> 0024 #include <Transfer_ActorOfTransientProcess.hxx> 0025 class Interface_InterfaceModel; 0026 class Interface_GeneralLib; 0027 class Interface_Protocol; 0028 class Transfer_Binder; 0029 class Standard_Transient; 0030 class Transfer_TransientProcess; 0031 0032 class Transfer_ActorDispatch; 0033 DEFINE_STANDARD_HANDLE(Transfer_ActorDispatch, Transfer_ActorOfTransientProcess) 0034 0035 //! This class allows to work with a TransferDispatch, i.e. to 0036 //! transfer entities from a data set to another one defined by 0037 //! the same interface norm, with the following features : 0038 //! - ActorDispatch itself acts as a default actor, i.e. it copies 0039 //! entities with the general service Copy, as CopyTool does 0040 //! - it allows to add other actors for specific ways of transfer, 0041 //! which may include data modifications, conversions ... 0042 //! - and other features from TransferDispatch (such as mapping 0043 //! other than one-one) 0044 class Transfer_ActorDispatch : public Transfer_ActorOfTransientProcess 0045 { 0046 0047 public: 0048 //! Creates an ActorDispatch from a Model. Works with a General 0049 //! Service Library, given as an Argument 0050 //! This causes TransferDispatch and its TransientProcess to be 0051 //! created, with default actor <me> 0052 Standard_EXPORT Transfer_ActorDispatch(const Handle(Interface_InterfaceModel)& amodel, 0053 const Interface_GeneralLib& lib); 0054 0055 //! Same as above, but Library is defined through a Protocol 0056 Standard_EXPORT Transfer_ActorDispatch(const Handle(Interface_InterfaceModel)& amodel, 0057 const Handle(Interface_Protocol)& protocol); 0058 0059 //! Same as above, but works with the Active Protocol 0060 Standard_EXPORT Transfer_ActorDispatch(const Handle(Interface_InterfaceModel)& amodel); 0061 0062 //! Utility which adds an actor to the default <me> (it calls 0063 //! SetActor from the TransientProcess) 0064 Standard_EXPORT void AddActor(const Handle(Transfer_ActorOfTransientProcess)& actor); 0065 0066 //! Returns the TransferDispatch, which does the work, records 0067 //! the intermediate data, etc... 0068 //! See TransferDispatch & CopyTool, to see the available methods 0069 Standard_EXPORT Transfer_TransferDispatch& TransferDispatch(); 0070 0071 //! Specific action : it calls the method Transfer from CopyTool 0072 //! i.e. the general service Copy, then returns the Binder 0073 //! produced by the TransientProcess 0074 Standard_EXPORT virtual Handle(Transfer_Binder) Transfer( 0075 const Handle(Standard_Transient)& start, 0076 const Handle(Transfer_TransientProcess)& TP, 0077 const Message_ProgressRange& theProgress = Message_ProgressRange()) Standard_OVERRIDE; 0078 0079 DEFINE_STANDARD_RTTIEXT(Transfer_ActorDispatch, Transfer_ActorOfTransientProcess) 0080 0081 protected: 0082 private: 0083 Transfer_TransferDispatch thetool; 0084 }; 0085 0086 #endif // _Transfer_ActorDispatch_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|