Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:43

0001 // Created on: 1995-12-07
0002 // Created by: EXPRESS->CDL V0.2 Translator
0003 // Copyright (c) 1995-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 _RWStepAP214_ReadWriteModule_HeaderFile
0018 #define _RWStepAP214_ReadWriteModule_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <StepData_ReadWriteModule.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <TColStd_SequenceOfAsciiString.hxx>
0025 class TCollection_AsciiString;
0026 class StepData_StepReaderData;
0027 class Interface_Check;
0028 class Standard_Transient;
0029 class StepData_StepWriter;
0030 
0031 
0032 class RWStepAP214_ReadWriteModule;
0033 DEFINE_STANDARD_HANDLE(RWStepAP214_ReadWriteModule, StepData_ReadWriteModule)
0034 
0035 //! General module to read and write StepAP214 entities
0036 class RWStepAP214_ReadWriteModule : public StepData_ReadWriteModule
0037 {
0038 
0039 public:
0040 
0041   
0042   Standard_EXPORT RWStepAP214_ReadWriteModule();
0043   
0044   //! associates a positive Case Number to each type of StepAP214 entity,
0045   //! given as a String defined in the EXPRESS form
0046   Standard_EXPORT Standard_Integer CaseStep (const TCollection_AsciiString& atype) const Standard_OVERRIDE;
0047   
0048   //! associates a positive Case Number to each type of StepAP214 Complex entity,
0049   //! given as a String defined in the EXPRESS form
0050   Standard_EXPORT virtual Standard_Integer CaseStep (const TColStd_SequenceOfAsciiString& types) const Standard_OVERRIDE;
0051   
0052   //! returns True if the Case Number corresponds to a Complex Type
0053   Standard_EXPORT virtual Standard_Boolean IsComplex (const Standard_Integer CN) const Standard_OVERRIDE;
0054   
0055   //! returns a StepType (defined in EXPRESS form which belongs to a
0056   //! Type of Entity, identified by its CaseNumber determined by Protocol
0057   Standard_EXPORT const TCollection_AsciiString& StepType (const Standard_Integer CN) const Standard_OVERRIDE;
0058   
0059   Standard_EXPORT virtual Standard_Boolean ComplexType (const Standard_Integer CN, TColStd_SequenceOfAsciiString& types) const Standard_OVERRIDE;
0060   
0061   Standard_EXPORT void ReadStep (const Standard_Integer CN, const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0062   
0063   Standard_EXPORT void WriteStep (const Standard_Integer CN, StepData_StepWriter& SW, const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0064 
0065 
0066 
0067 
0068   DEFINE_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule,StepData_ReadWriteModule)
0069 
0070 protected:
0071 
0072 
0073 
0074 
0075 private:
0076 
0077 
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _RWStepAP214_ReadWriteModule_HeaderFile