973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
16 | #include <StepBasic_ProductDefinition.hxx> |
17 | #include <StepBasic_ProductDefinitionContext.hxx> |
18 | #include <StepBasic_ProductDefinitionFormation.hxx> |
19 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
20 | |
92efcf78 |
21 | IMPLEMENT_STANDARD_RTTIEXT(StepBasic_ProductDefinition,MMgt_TShared) |
22 | |
7fd59977 |
23 | StepBasic_ProductDefinition::StepBasic_ProductDefinition () {} |
24 | |
25 | void StepBasic_ProductDefinition::Init( |
26 | const Handle(TCollection_HAsciiString)& aId, |
27 | const Handle(TCollection_HAsciiString)& aDescription, |
28 | const Handle(StepBasic_ProductDefinitionFormation)& aFormation, |
29 | const Handle(StepBasic_ProductDefinitionContext)& aFrameOfReference) |
30 | { |
31 | // --- classe own fields --- |
32 | id = aId; |
33 | description = aDescription; |
34 | formation = aFormation; |
35 | frameOfReference = aFrameOfReference; |
36 | } |
37 | |
38 | |
39 | void StepBasic_ProductDefinition::SetId(const Handle(TCollection_HAsciiString)& aId) |
40 | { |
41 | id = aId; |
42 | } |
43 | |
44 | Handle(TCollection_HAsciiString) StepBasic_ProductDefinition::Id() const |
45 | { |
46 | return id; |
47 | } |
48 | |
49 | void StepBasic_ProductDefinition::SetDescription(const Handle(TCollection_HAsciiString)& aDescription) |
50 | { |
51 | description = aDescription; |
52 | } |
53 | |
54 | Handle(TCollection_HAsciiString) StepBasic_ProductDefinition::Description() const |
55 | { |
56 | return description; |
57 | } |
58 | |
59 | void StepBasic_ProductDefinition::SetFormation(const Handle(StepBasic_ProductDefinitionFormation)& aFormation) |
60 | { |
61 | formation = aFormation; |
62 | } |
63 | |
64 | Handle(StepBasic_ProductDefinitionFormation) StepBasic_ProductDefinition::Formation() const |
65 | { |
66 | return formation; |
67 | } |
68 | |
69 | void StepBasic_ProductDefinition::SetFrameOfReference(const Handle(StepBasic_ProductDefinitionContext)& aFrameOfReference) |
70 | { |
71 | frameOfReference = aFrameOfReference; |
72 | } |
73 | |
74 | Handle(StepBasic_ProductDefinitionContext) StepBasic_ProductDefinition::FrameOfReference() const |
75 | { |
76 | return frameOfReference; |
77 | } |