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