0025748: Parallel version of progress indicator
[occt.git] / src / Transfer / Transfer_ActorOfTransientProcess.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Standard_Transient.hxx>
16 #include <Standard_Type.hxx>
17 #include <Transfer_ActorOfTransientProcess.hxx>
18 #include <Transfer_Binder.hxx>
19 #include <Transfer_ProcessForTransient.hxx>
20 #include <Transfer_SimpleBinderOfTransient.hxx>
21 #include <Transfer_TransientProcess.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(Transfer_ActorOfTransientProcess,Transfer_ActorOfProcessForTransient)
24
25 Transfer_ActorOfTransientProcess::Transfer_ActorOfTransientProcess ()    {  }
26
27 Handle(Transfer_Binder)  Transfer_ActorOfTransientProcess::Transfer
28   (const Handle(Standard_Transient)& start,
29    const Handle(Transfer_TransientProcess)& TP,
30    const Message_ProgressRange& theProgress)
31 {
32   Handle(Standard_Transient) res = TransferTransient (start,TP, theProgress);
33   if (res.IsNull()) return NullResult();
34   return TransientResult (res);
35 }
36
37 Handle(Transfer_Binder)  Transfer_ActorOfTransientProcess::Transferring
38   (const Handle(Standard_Transient)& ent,
39    const Handle(Transfer_ProcessForTransient)& TP,
40    const Message_ProgressRange& theProgress)
41 {
42   return Transfer(ent,Handle(Transfer_TransientProcess)::DownCast(TP), theProgress);
43 }
44
45 Handle(Standard_Transient)  Transfer_ActorOfTransientProcess::TransferTransient
46   (const Handle(Standard_Transient)& /*ent*/,
47    const Handle(Transfer_TransientProcess)& /*TP*/,
48    const Message_ProgressRange& )
49 {
50   Handle(Standard_Transient) nulres;
51   return nulres;
52 }