0024023: Revamp the OCCT Handle -- general
[occt.git] / src / Transfer / Transfer_ActorOfTransientProcess.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 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
973c2be1 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.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <Transfer_ActorOfTransientProcess.ixx>
ec357c5c 15#include <Transfer_TransientProcess.hxx>
c04c30b3 16#include <Transfer_SimpleBinderOfTransient.hxx>
7fd59977 17
18Transfer_ActorOfTransientProcess::Transfer_ActorOfTransientProcess () { }
19
20Handle(Transfer_Binder) Transfer_ActorOfTransientProcess::Transfer
21 (const Handle(Standard_Transient)& start,
22 const Handle(Transfer_TransientProcess)& TP)
23{
24 Handle(Standard_Transient) res = TransferTransient (start,TP);
25 if (res.IsNull()) return NullResult();
26 return TransientResult (res);
27}
28
29Handle(Transfer_Binder) Transfer_ActorOfTransientProcess::Transferring
30 (const Handle(Standard_Transient)& ent,
31 const Handle(Transfer_ProcessForTransient)& TP)
32{
33 return Transfer(ent,Handle(Transfer_TransientProcess)::DownCast(TP));
34}
35
36Handle(Standard_Transient) Transfer_ActorOfTransientProcess::TransferTransient
37 (const Handle(Standard_Transient)& /*ent*/,
38 const Handle(Transfer_TransientProcess)& /*TP*/)
39{
40 Handle(Standard_Transient) nulres;
41 return nulres;
42}