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 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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <Standard_Type.hxx>
16 #include <TopoDS_Shape.hxx>
17 #include <Transfer_TransferFailure.hxx>
18 #include <TransferBRep_BinderOfShape.hxx>
19 #include <TransferBRep_ShapeInfo.hxx>
21 IMPLEMENT_STANDARD_RTTIEXT(TransferBRep_BinderOfShape,Transfer_Binder)
23 TransferBRep_BinderOfShape::TransferBRep_BinderOfShape (){ }
25 TransferBRep_BinderOfShape::TransferBRep_BinderOfShape (const TopoDS_Shape& res)
27 { SetResultPresent(); }
30 // Standard_Boolean TransferBRep_BinderOfShape::IsMultiple() const
31 // { return Standard_False; }
34 Handle(Standard_Type) TransferBRep_BinderOfShape::ResultType () const
35 { return TransferBRep_ShapeInfo::Type (theres); } // correspond a "STANDARD_TYPE(TopoDS_Shape)"
37 Standard_CString TransferBRep_BinderOfShape::ResultTypeName () const
38 { return TransferBRep_ShapeInfo::TypeName (theres); } // correspond a "STANDARD_TYPE(TopoDS_Shape)"
41 void TransferBRep_BinderOfShape::SetResult (const TopoDS_Shape& res)
47 const TopoDS_Shape& TransferBRep_BinderOfShape::Result () const
50 TopoDS_Shape& TransferBRep_BinderOfShape::CResult ()
51 { SetResultPresent(); return theres; }