1 // Created on: 1994-10-03
2 // Created by: Christian CAILLET
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TransferBRep_OrientedShapeMapper_HeaderFile
18 #define _TransferBRep_OrientedShapeMapper_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TopoDS_Shape.hxx>
24 #include <Transfer_Finder.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Type.hxx>
27 #include <Standard_CString.hxx>
29 class TopTools_OrientedShapeMapHasher;
30 class TransferBRep_ShapeInfo;
31 class Transfer_Finder;
34 class TransferBRep_OrientedShapeMapper;
35 DEFINE_STANDARD_HANDLE(TransferBRep_OrientedShapeMapper, Transfer_Finder)
38 class TransferBRep_OrientedShapeMapper : public Transfer_Finder
44 //! Creates a Mapper with a Value. This Value can then not be
45 //! changed. It is used by the Hasher to compute the HashCode,
46 //! which will then be stored for an immediate reading.
47 Standard_EXPORT TransferBRep_OrientedShapeMapper(const TopoDS_Shape& akey);
49 //! Returns the contained value
50 Standard_EXPORT const TopoDS_Shape& Value() const;
52 //! Specific testof equallity : defined as False if <other> has
53 //! not the same true Type, else contents are compared (by
55 Standard_EXPORT Standard_Boolean Equates (const Handle(Transfer_Finder)& other) const Standard_OVERRIDE;
57 //! Returns the Type of the Value. By default, returns the
58 //! DynamicType of <me>, but can be redefined
59 Standard_EXPORT virtual Handle(Standard_Type) ValueType() const Standard_OVERRIDE;
61 //! Returns the name of the Type of the Value. Default is name
62 //! of ValueType, unless it is for a non-handled object
63 Standard_EXPORT virtual Standard_CString ValueTypeName() const Standard_OVERRIDE;
68 DEFINE_STANDARD_RTTI_INLINE(TransferBRep_OrientedShapeMapper,Transfer_Finder)
89 #endif // _TransferBRep_OrientedShapeMapper_HeaderFile