1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and / or modify it
6 // under the terms of the GNU Lesser General Public 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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <Transfer_ActorOfFinderProcess.ixx>
15 #include <Transfer_TransientMapper.hxx>
17 Transfer_ActorOfFinderProcess::Transfer_ActorOfFinderProcess () { themodetrans = 0; }
19 Standard_Integer& Transfer_ActorOfFinderProcess::ModeTrans ()
20 { return themodetrans; }
22 Handle(Transfer_Binder) Transfer_ActorOfFinderProcess::Transfer
23 (const Handle(Transfer_Finder)& fnd,
24 const Handle(Transfer_FinderProcess)& FP)
26 Handle(Transfer_TransientMapper) tm = Handle(Transfer_TransientMapper)::DownCast (fnd);
27 if (tm.IsNull()) return NullResult();
28 Handle(Standard_Transient) res = TransferTransient (tm->Value(),FP);
29 if (res.IsNull()) return NullResult();
30 return TransientResult (res);
33 Handle(Transfer_Binder) Transfer_ActorOfFinderProcess::Transferring
34 (const Handle(Transfer_Finder)& ent,
35 const Handle(Transfer_ProcessForFinder)& TP)
37 return Transfer(ent,Handle(Transfer_FinderProcess)::DownCast(TP));
40 Handle(Standard_Transient) Transfer_ActorOfFinderProcess::TransferTransient
41 (const Handle(Standard_Transient)& /*ent*/,
42 const Handle(Transfer_FinderProcess)& )
44 Handle(Standard_Transient) nulres;