|
||||
File indexing completed on 2025-01-18 10:05:28
0001 // Created on: 1992-02-03 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1992-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_ActorOfProcessForTransient_HeaderFile 0018 #define _Transfer_ActorOfProcessForTransient_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Transient.hxx> 0024 #include <Transfer_TransferMapOfProcessForTransient.hxx> 0025 #include <Message_ProgressRange.hxx> 0026 0027 class Standard_DomainError; 0028 class Standard_Transient; 0029 class Transfer_ProcessForTransient; 0030 class Transfer_IteratorOfProcessForTransient; 0031 class Transfer_Binder; 0032 class Transfer_SimpleBinderOfTransient; 0033 0034 class Transfer_ActorOfProcessForTransient; 0035 DEFINE_STANDARD_HANDLE(Transfer_ActorOfProcessForTransient, Standard_Transient) 0036 0037 0038 class Transfer_ActorOfProcessForTransient : public Standard_Transient 0039 { 0040 0041 public: 0042 0043 0044 Standard_EXPORT Transfer_ActorOfProcessForTransient(); 0045 0046 //! Prerequesite for Transfer : the method Transfer is 0047 //! called on a starting object only if Recognize has 0048 //! returned True on it 0049 //! This allows to define a list of Actors, each one 0050 //! processing a definite kind of data 0051 //! TransferProcess calls Recognize on each one before 0052 //! calling Transfer. But even if Recognize has returned 0053 //! True, Transfer can reject by returning a Null Binder 0054 //! (afterwards rejection), the next actor is then invoked 0055 //! 0056 //! The provided default returns True, can be redefined 0057 Standard_EXPORT virtual Standard_Boolean Recognize (const Handle(Standard_Transient)& start); 0058 0059 //! Specific action of Transfer. The Result is stored in 0060 //! the returned Binder, or a Null Handle for "No result" 0061 //! (Default defined as doing nothing; should be deferred) 0062 //! "mutable" allows the Actor to record intermediate 0063 //! information, in addition to those of TransferProcess 0064 Standard_EXPORT virtual Handle(Transfer_Binder) Transferring 0065 (const Handle(Standard_Transient)& start, 0066 const Handle(Transfer_ProcessForTransient)& TP, 0067 const Message_ProgressRange& theProgress = Message_ProgressRange()); 0068 0069 //! Prepares and Returns a Binder for a Transient Result 0070 //! Returns a Null Handle if <res> is itself Null 0071 Standard_EXPORT Handle(Transfer_SimpleBinderOfTransient) TransientResult (const Handle(Standard_Transient)& res) const; 0072 0073 //! Returns a Binder for No Result, i.e. a Null Handle 0074 Standard_EXPORT Handle(Transfer_Binder) NullResult() const; 0075 0076 //! If <mode> is True, commands an Actor to be set at the 0077 //! end of the list of Actors (see SetNext) 0078 //! If it is False (creation default), each add Actor is 0079 //! set at the beginning of the list 0080 //! This allows to define default Actors (which are Last) 0081 Standard_EXPORT void SetLast (const Standard_Boolean mode = Standard_True); 0082 0083 //! Returns the Last status (see SetLast). 0084 Standard_EXPORT Standard_Boolean IsLast() const; 0085 0086 //! Defines a Next Actor : it can then be asked to work if 0087 //! <me> produces no result for a given type of Object. 0088 //! If Next is already set and is not "Last", calls 0089 //! SetNext on it. If Next defined and "Last", the new 0090 //! actor is added before it in the list 0091 Standard_EXPORT void SetNext (const Handle(Transfer_ActorOfProcessForTransient)& next); 0092 0093 //! Returns the Actor defined as Next, or a Null Handle 0094 Standard_EXPORT Handle(Transfer_ActorOfProcessForTransient) Next() const; 0095 0096 0097 0098 0099 DEFINE_STANDARD_RTTI_INLINE(Transfer_ActorOfProcessForTransient,Standard_Transient) 0100 0101 protected: 0102 0103 0104 0105 0106 private: 0107 0108 0109 Handle(Transfer_ActorOfProcessForTransient) thenext; 0110 Standard_Boolean thelast; 0111 0112 0113 }; 0114 0115 0116 0117 0118 0119 0120 0121 #endif // _Transfer_ActorOfProcessForTransient_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |