d658f275 |
1 | // Created on: 2016-03-30 |
2 | // Created by: Irina KRYLOVA |
3 | // Copyright (c) 2016 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _StepBasic_ProductDefinitionReference_HeaderFile |
17 | #define _StepBasic_ProductDefinitionReference_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <Standard_Boolean.hxx> |
25e59720 |
23 | #include <Standard_Transient.hxx> |
d658f275 |
24 | class TCollection_HAsciiString; |
25 | |
26 | class StepBasic_ExternalSource; |
27 | |
28 | class StepBasic_ProductDefinitionReference; |
25e59720 |
29 | DEFINE_STANDARD_HANDLE(StepBasic_ProductDefinitionReference, Standard_Transient) |
d658f275 |
30 | |
31 | //! Representation of STEP entity Product_Definition_Reference |
25e59720 |
32 | class StepBasic_ProductDefinitionReference : public Standard_Transient |
d658f275 |
33 | { |
34 | public: |
35 | |
36 | //! Empty constructor |
37 | Standard_EXPORT StepBasic_ProductDefinitionReference(); |
38 | |
39 | //! Initialize all fields (own and inherited) |
40 | Standard_EXPORT void Init (const Handle(StepBasic_ExternalSource)& theSource, |
41 | const Handle(TCollection_HAsciiString)& theProductId, |
42 | const Handle(TCollection_HAsciiString)& theProductDefinitionFormationId, |
43 | const Handle(TCollection_HAsciiString)& theProductDefinitionId, |
44 | const Handle(TCollection_HAsciiString)& theIdOwningOrganizationName); |
45 | |
46 | //! Initialize all fields (own and inherited) |
47 | Standard_EXPORT void Init (const Handle(StepBasic_ExternalSource)& theSource, |
48 | const Handle(TCollection_HAsciiString)& theProductId, |
49 | const Handle(TCollection_HAsciiString)& theProductDefinitionFormationId, |
50 | const Handle(TCollection_HAsciiString)& theProductDefinitionId); |
51 | |
52 | //! Returns field Source |
53 | inline Handle(StepBasic_ExternalSource) Source() const |
54 | { |
55 | return mySource; |
56 | } |
57 | |
58 | //! Set field Source |
59 | inline void SetSource (const Handle(StepBasic_ExternalSource)& theSource) |
60 | { |
61 | mySource = theSource; |
62 | } |
63 | |
64 | //! Returns field ProductId |
65 | inline Handle(TCollection_HAsciiString) ProductId() const |
66 | { |
67 | return myProductId; |
68 | } |
69 | |
70 | //! Set field ProductId |
71 | inline void SetProductId (const Handle(TCollection_HAsciiString)& theProductId) |
72 | { |
73 | myProductId = theProductId; |
74 | } |
75 | |
76 | //! Returns field ProductDefinitionFormationId |
77 | inline Handle(TCollection_HAsciiString) ProductDefinitionFormationId() const |
78 | { |
79 | return myProductDefinitionFormationId; |
80 | } |
81 | |
82 | //! Set field ProductDefinitionFormationId |
83 | inline void SetProductDefinitionFormationId (const Handle(TCollection_HAsciiString)& theProductDefinitionFormationId) |
84 | { |
85 | myProductDefinitionFormationId = theProductDefinitionFormationId; |
86 | } |
87 | |
88 | //! Returns field ProductDefinitionId |
89 | inline Handle(TCollection_HAsciiString) ProductDefinitionId() const |
90 | { |
91 | return myProductDefinitionId; |
92 | } |
93 | |
94 | //! Set field ProductDefinitionId |
95 | inline void SetProductDefinitionId (const Handle(TCollection_HAsciiString)& theProductDefinitionId) |
96 | { |
97 | myProductDefinitionId = theProductDefinitionId; |
98 | } |
99 | |
100 | //! Returns field IdOwningOrganizationName |
101 | inline Handle(TCollection_HAsciiString) IdOwningOrganizationName() const |
102 | { |
103 | return myIdOwningOrganizationName; |
104 | } |
105 | |
106 | //! Set field IdOwningOrganizationName |
107 | inline void SetIdOwningOrganizationName (const Handle(TCollection_HAsciiString)& theIdOwningOrganizationName) |
108 | { |
109 | myIdOwningOrganizationName = theIdOwningOrganizationName; |
110 | hasIdOwningOrganizationName = (!theIdOwningOrganizationName.IsNull()); |
111 | } |
112 | |
113 | //! Returns true if IdOwningOrganizationName exists |
114 | inline Standard_Boolean HasIdOwningOrganizationName() const |
115 | { |
116 | return hasIdOwningOrganizationName; |
117 | } |
118 | |
25e59720 |
119 | DEFINE_STANDARD_RTTIEXT(StepBasic_ProductDefinitionReference, Standard_Transient) |
d658f275 |
120 | |
121 | private: |
122 | Handle(StepBasic_ExternalSource) mySource; |
123 | Handle(TCollection_HAsciiString) myProductId; |
124 | Handle(TCollection_HAsciiString) myProductDefinitionFormationId; |
125 | Handle(TCollection_HAsciiString) myProductDefinitionId; |
126 | Handle(TCollection_HAsciiString) myIdOwningOrganizationName; |
127 | Standard_Boolean hasIdOwningOrganizationName; |
128 | }; |
129 | |
130 | #endif // _StepBasic_ProductDefinitionReference_HeaderFile |