5593a18417a8091b3dae26b616a34d60d656565f
[occt.git] / src / IGESData / IGESData_DirPart.hxx
1 // Created on: 1992-04-06
2 // Created by: Christian CAILLET
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESData_DirPart_HeaderFile
18 #define _IGESData_DirPart_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Standard_Integer.hxx>
25 #include <Standard_Character.hxx>
26 #include <Standard_CString.hxx>
27 class IGESData_IGESType;
28
29
30 //! litteral/numeric description of an entity's directory section,
31 //! taken from file
32 class IGESData_DirPart 
33 {
34 public:
35
36   DEFINE_STANDARD_ALLOC
37
38   
39   //! creates an empty DirPart, ready to be filled by Init
40   Standard_EXPORT IGESData_DirPart();
41   
42   //! fills DirPart with consistant data read from file
43   Standard_EXPORT void Init (const Standard_Integer i1, const Standard_Integer i2, const Standard_Integer i3, const Standard_Integer i4, const Standard_Integer i5, const Standard_Integer i6, const Standard_Integer i7, const Standard_Integer i8, const Standard_Integer i9, const Standard_Integer i19, const Standard_Integer i11, const Standard_Integer i12, const Standard_Integer i13, const Standard_Integer i14, const Standard_Integer i15, const Standard_Integer i16, const Standard_Integer i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript);
44   
45   //! returns values recorded in DirPart
46   //! (content of cstrings are modified)
47   Standard_EXPORT void Values (Standard_Integer& i1, Standard_Integer& i2, Standard_Integer& i3, Standard_Integer& i4, Standard_Integer& i5, Standard_Integer& i6, Standard_Integer& i7, Standard_Integer& i8, Standard_Integer& i9, Standard_Integer& i19, Standard_Integer& i11, Standard_Integer& i12, Standard_Integer& i13, Standard_Integer& i14, Standard_Integer& i15, Standard_Integer& i16, Standard_Integer& i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript) const;
48   
49   //! returns "type" and "form" info, used to recognize the entity
50   Standard_EXPORT IGESData_IGESType Type() const;
51
52
53
54
55 protected:
56
57
58
59
60
61 private:
62
63
64
65   Standard_Integer thevals[17];
66   Standard_Character theres1[10];
67   Standard_Character theres2[10];
68   Standard_Character thelabl[10];
69   Standard_Character thesubs[10];
70
71
72 };
73
74
75
76
77
78
79
80 #endif // _IGESData_DirPart_HeaderFile