1 // Created on: 1993-09-08
2 // Created by: Christian CAILLET
3 // Copyright (c) 1993-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 _IGESData_DefaultGeneral_HeaderFile
18 #define _IGESData_DefaultGeneral_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IGESData_GeneralModule.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Standard_Boolean.hxx>
26 class IGESData_IGESEntity;
27 class Interface_EntityIterator;
28 class IGESData_DirChecker;
29 class Interface_ShareTool;
30 class Interface_Check;
31 class Standard_Transient;
32 class Interface_CopyTool;
35 class IGESData_DefaultGeneral;
36 DEFINE_STANDARD_HANDLE(IGESData_DefaultGeneral, IGESData_GeneralModule)
38 //! Processes the specific case of UndefinedEntity from IGESData
40 class IGESData_DefaultGeneral : public IGESData_GeneralModule
46 //! Creates a DefaultGeneral and puts it into GeneralLib,
47 //! bound with a Protocol from IGESData
48 Standard_EXPORT IGESData_DefaultGeneral();
50 //! Lists the Entities shared by an IGESEntity, which must be
51 //! an UndefinedEntity
52 Standard_EXPORT void OwnSharedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const Standard_OVERRIDE;
54 //! Returns a DirChecker, specific for each type of Entity
55 //! Here, Returns an empty DirChecker (no constraint to check)
56 Standard_EXPORT IGESData_DirChecker DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
58 //! Performs Specific Semantic Check for each type of Entity
59 //! Here, does nothing (no constraint to check)
60 Standard_EXPORT void OwnCheckCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
62 //! Specific creation of a new void entity (UndefinedEntity only)
63 Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
65 //! Copies parameters which are specific of each Type of Entity
66 Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
71 DEFINE_STANDARD_RTTIEXT(IGESData_DefaultGeneral,IGESData_GeneralModule)
91 #endif // _IGESData_DefaultGeneral_HeaderFile