42cf5bc1 |
1 | // Created on: 1993-01-09 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN ) |
3 | // Copyright (c) 1993-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 _IGESBasic_ExternalRefFileName_HeaderFile |
18 | #define _IGESBasic_ExternalRefFileName_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <IGESData_IGESEntity.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | class TCollection_HAsciiString; |
26 | |
27 | |
28 | class IGESBasic_ExternalRefFileName; |
29 | DEFINE_STANDARD_HANDLE(IGESBasic_ExternalRefFileName, IGESData_IGESEntity) |
30 | |
31 | //! defines ExternalRefFileName, Type <416> Form <0-2> |
32 | //! in package IGESBasic |
33 | //! Used when single definition from the reference file is |
34 | //! required or for external logical references where an |
35 | //! entity in one file relates to an entity in another file |
36 | class IGESBasic_ExternalRefFileName : public IGESData_IGESEntity |
37 | { |
38 | |
39 | public: |
40 | |
41 | |
42 | Standard_EXPORT IGESBasic_ExternalRefFileName(); |
43 | |
44 | //! This method is used to set the fields of the class |
45 | //! ExternalRefFileName |
46 | //! - aFileIdent : External Reference File Identifier |
47 | //! - anExtName : External Reference Entity Symbolic Name |
48 | Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aFileIdent, const Handle(TCollection_HAsciiString)& anExtName); |
49 | |
50 | //! Changes FormNumber to be 2 if <mode> is True (For Entity) |
51 | //! or 0 if <mode> is False (For Definition) |
52 | Standard_EXPORT void SetForEntity (const Standard_Boolean mode); |
53 | |
54 | //! returns External Reference File Identifier |
55 | Standard_EXPORT Handle(TCollection_HAsciiString) FileId() const; |
56 | |
57 | //! returns External Reference Entity Symbolic Name |
58 | Standard_EXPORT Handle(TCollection_HAsciiString) ReferenceName() const; |
59 | |
60 | |
61 | |
62 | |
92efcf78 |
63 | DEFINE_STANDARD_RTTIEXT(IGESBasic_ExternalRefFileName,IGESData_IGESEntity) |
42cf5bc1 |
64 | |
65 | protected: |
66 | |
67 | |
68 | |
69 | |
70 | private: |
71 | |
72 | |
73 | Handle(TCollection_HAsciiString) theExtRefFileIdentifier; |
74 | Handle(TCollection_HAsciiString) theExtRefEntitySymbName; |
75 | |
76 | |
77 | }; |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | #endif // _IGESBasic_ExternalRefFileName_HeaderFile |