Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-24 09:16:11

0001 // Created on: 1992-04-06
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1992-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_DirPart_HeaderFile
0018 #define _IGESData_DirPart_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 class IGESData_IGESType;
0025 
0026 //! literal/numeric description of an entity's directory section, taken from file
0027 class IGESData_DirPart
0028 {
0029 public:
0030   DEFINE_STANDARD_ALLOC
0031 
0032   //! creates an empty DirPart, ready to be filled by Init
0033   Standard_EXPORT IGESData_DirPart();
0034 
0035   //! fills DirPart with consistent data read from file
0036   Standard_EXPORT void Init(const int         i1,
0037                             const int         i2,
0038                             const int         i3,
0039                             const int         i4,
0040                             const int         i5,
0041                             const int         i6,
0042                             const int         i7,
0043                             const int         i8,
0044                             const int         i9,
0045                             const int         i19,
0046                             const int         i11,
0047                             const int         i12,
0048                             const int         i13,
0049                             const int         i14,
0050                             const int         i15,
0051                             const int         i16,
0052                             const int         i17,
0053                             const char* const res1,
0054                             const char* const res2,
0055                             const char* const label,
0056                             const char* const subscript);
0057 
0058   //! returns values recorded in DirPart
0059   //! (content of cstrings are modified)
0060   Standard_EXPORT void Values(int&  i1,
0061                               int&  i2,
0062                               int&  i3,
0063                               int&  i4,
0064                               int&  i5,
0065                               int&  i6,
0066                               int&  i7,
0067                               int&  i8,
0068                               int&  i9,
0069                               int&  i19,
0070                               int&  i11,
0071                               int&  i12,
0072                               int&  i13,
0073                               int&  i14,
0074                               int&  i15,
0075                               int&  i16,
0076                               int&  i17,
0077                               char* res1,
0078                               char* res2,
0079                               char* label,
0080                               char* subscript) const;
0081 
0082   //! returns "type" and "form" info, used to recognize the entity
0083   Standard_EXPORT IGESData_IGESType Type() const;
0084 
0085 private:
0086   int  thevals[17];
0087   char theres1[10];
0088   char theres2[10];
0089   char thelabl[10];
0090   char thesubs[10];
0091 };
0092 
0093 #endif // _IGESData_DirPart_HeaderFile