Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:58

0001 // Created on: 1993-05-05
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESData_Protocol_HeaderFile
0018 #define _IGESData_Protocol_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Interface_Protocol.hxx>
0024 #include <Standard_Integer.hxx>
0025 class Interface_InterfaceModel;
0026 class Standard_Transient;
0027 
0028 
0029 class IGESData_Protocol;
0030 DEFINE_STANDARD_HANDLE(IGESData_Protocol, Interface_Protocol)
0031 
0032 //! Description of basic Protocol for IGES
0033 //! This comprises treatment of IGESModel and Recognition of
0034 //! Undefined-FreeFormat-Entity
0035 class IGESData_Protocol : public Interface_Protocol
0036 {
0037 
0038 public:
0039 
0040   
0041   Standard_EXPORT IGESData_Protocol();
0042   
0043   //! Gives the count of Resource Protocol. Here, none
0044   Standard_EXPORT Standard_Integer NbResources() const Standard_OVERRIDE;
0045   
0046   //! Returns a Resource, given a rank. Here, none
0047   Standard_EXPORT Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
0048   
0049   //! Returns a Case Number, specific of each recognized Type
0050   //! Here, Undefined and Free Format Entities have the Number 1.
0051   Standard_EXPORT Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
0052   
0053   //! Creates an empty Model for IGES Norm
0054   Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
0055   
0056   //! Returns True if <model> is a Model of IGES Norm
0057   Standard_EXPORT Standard_Boolean IsSuitableModel (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
0058   
0059   //! Creates a new Unknown Entity for IGES (UndefinedEntity)
0060   Standard_EXPORT Handle(Standard_Transient) UnknownEntity() const Standard_OVERRIDE;
0061   
0062   //! Returns True if <ent> is an Unknown Entity for the Norm, i.e.
0063   //! Type UndefinedEntity, status Unknown
0064   Standard_EXPORT Standard_Boolean IsUnknownEntity (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0065 
0066 
0067 
0068 
0069   DEFINE_STANDARD_RTTIEXT(IGESData_Protocol,Interface_Protocol)
0070 
0071 protected:
0072 
0073 
0074 
0075 
0076 private:
0077 
0078 
0079 
0080 
0081 };
0082 
0083 
0084 
0085 
0086 
0087 
0088 
0089 #endif // _IGESData_Protocol_HeaderFile