0026595: Lost some comments in OCCT-code after cdl elimination
[occt.git] / src / Transfer / Transfer_ActorOfProcessForTransient.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-02-03
2// Created by: Christian CAILLET
3// Copyright (c) 1992-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _Transfer_ActorOfProcessForTransient_HeaderFile
18#define _Transfer_ActorOfProcessForTransient_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Boolean.hxx>
24#include <MMgt_TShared.hxx>
25#include <TColStd_MapTransientHasher.hxx>
26#include <TColStd_HSequenceOfTransient.hxx>
27class Standard_DomainError;
28class Standard_Transient;
29class Transfer_ProcessForTransient;
30class Transfer_TransferMapOfProcessForTransient;
31class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient;
32class Transfer_IteratorOfProcessForTransient;
33class Transfer_Binder;
34class Transfer_SimpleBinderOfTransient;
35
36
37class Transfer_ActorOfProcessForTransient;
38DEFINE_STANDARD_HANDLE(Transfer_ActorOfProcessForTransient, MMgt_TShared)
39
40
41class Transfer_ActorOfProcessForTransient : public MMgt_TShared
42{
43
44public:
45
46
47 Standard_EXPORT Transfer_ActorOfProcessForTransient();
48
36b9ff75 49 //! Prerequesite for Transfer : the method Transfer is
50 //! called on a starting object only if Recognize has
51 //! returned True on it
52 //! This allows to define a list of Actors, each one
53 //! processing a definite kind of data
54 //! TransferProcess calls Recognize on each one before
55 //! calling Transfer. But even if Recognize has returned
56 //! True, Transfer can reject by returning a Null Binder
57 //! (afterwards rejection), the next actor is then invoked
58 //!
59 //! The provided default returns True, can be redefined
42cf5bc1 60 Standard_EXPORT virtual Standard_Boolean Recognize (const Handle(Standard_Transient)& start);
61
36b9ff75 62 //! Specific action of Transfer. The Result is stored in
63 //! the returned Binder, or a Null Handle for "No result"
64 //! (Default defined as doing nothing; should be deffered)
65 //! "mutable" allows the Actor to record intermediate
66 //! information, in addition to those of TransferProcess
42cf5bc1 67 Standard_EXPORT virtual Handle(Transfer_Binder) Transferring (const Handle(Standard_Transient)& start, const Handle(Transfer_ProcessForTransient)& TP);
68
36b9ff75 69 //! Prepares and Returns a Binder for a Transient Result
70 //! Returns a Null Handle if <res> is itself Null
42cf5bc1 71 Standard_EXPORT Handle(Transfer_SimpleBinderOfTransient) TransientResult (const Handle(Standard_Transient)& res) const;
72
36b9ff75 73 //! Returns a Binder for No Result, i.e. a Null Handle
42cf5bc1 74 Standard_EXPORT Handle(Transfer_Binder) NullResult() const;
75
36b9ff75 76 //! If <mode> is True, commands an Actor to be set at the
77 //! end of the list of Actors (see SetNext)
78 //! If it is False (creation default), each add Actor is
79 //! set at the beginning of the list
80 //! This allows to define default Actors (which are Last)
42cf5bc1 81 Standard_EXPORT void SetLast (const Standard_Boolean mode = Standard_True);
82
36b9ff75 83 //! Returns the Last status (see SetLast).
42cf5bc1 84 Standard_EXPORT Standard_Boolean IsLast() const;
85
36b9ff75 86 //! Defines a Next Actor : it can then be asked to work if
87 //! <me> produces no result for a given type of Object.
88 //! If Next is already set and is not "Last", calls
89 //! SetNext on it. If Next defined and "Last", the new
90 //! actor is added before it in the list
42cf5bc1 91 Standard_EXPORT void SetNext (const Handle(Transfer_ActorOfProcessForTransient)& next);
92
36b9ff75 93 //! Returns the Actor defined as Next, or a Null Handle
42cf5bc1 94 Standard_EXPORT Handle(Transfer_ActorOfProcessForTransient) Next() const;
95
96
97
98
99 DEFINE_STANDARD_RTTI(Transfer_ActorOfProcessForTransient,MMgt_TShared)
100
101protected:
102
103
104
105
106private:
107
108
109 Handle(Transfer_ActorOfProcessForTransient) thenext;
110 Standard_Boolean thelast;
111
112
113};
114
115
116
117
118
119
120
121#endif // _Transfer_ActorOfProcessForTransient_HeaderFile