7f0bf134256ed617fe53f1df10af9a9320a316e4
[occt.git] / src / StepBasic / StepBasic_UncertaintyMeasureWithUnit.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
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
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.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Standard_Type.hxx>
16 #include <StepBasic_MeasureValueMember.hxx>
17 #include <StepBasic_UncertaintyMeasureWithUnit.hxx>
18 #include <StepBasic_Unit.hxx>
19 #include <TCollection_HAsciiString.hxx>
20
21 IMPLEMENT_STANDARD_RTTIEXT(StepBasic_UncertaintyMeasureWithUnit,StepBasic_MeasureWithUnit)
22
23 //=======================================================================
24 //function : StepBasic_UncertaintyMeasureWithUnit
25 //purpose  : 
26 //=======================================================================
27 StepBasic_UncertaintyMeasureWithUnit::StepBasic_UncertaintyMeasureWithUnit ()  {}
28
29 //=======================================================================
30 //function : Init
31 //purpose  : 
32 //=======================================================================
33
34 void StepBasic_UncertaintyMeasureWithUnit::Init(
35         const Handle(StepBasic_MeasureValueMember)& aValueComponent,
36         const StepBasic_Unit& aUnitComponent)
37 {
38
39         StepBasic_MeasureWithUnit::Init(aValueComponent, aUnitComponent);
40 }
41
42 //=======================================================================
43 //function : Init
44 //purpose  : 
45 //=======================================================================
46
47 void StepBasic_UncertaintyMeasureWithUnit::Init(
48         const Handle(StepBasic_MeasureValueMember)& aValueComponent,
49         const StepBasic_Unit& aUnitComponent,
50         const Handle(TCollection_HAsciiString)& aName,
51         const Handle(TCollection_HAsciiString)& aDescription)
52 {
53         // --- classe own fields ---
54         name = aName;
55         description = aDescription;
56         // --- classe inherited fields ---
57         StepBasic_MeasureWithUnit::Init(aValueComponent, aUnitComponent);
58 }
59
60
61 //=======================================================================
62 //function : SetName
63 //purpose  : 
64 //=======================================================================
65
66 void StepBasic_UncertaintyMeasureWithUnit::SetName(const Handle(TCollection_HAsciiString)& aName)
67 {
68         name = aName;
69 }
70
71 //=======================================================================
72 //function : Name
73 //purpose  : 
74 //=======================================================================
75
76 Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Name() const
77 {
78         return name;
79 }
80
81 //=======================================================================
82 //function : SetDescription
83 //purpose  : 
84 //=======================================================================
85
86 void StepBasic_UncertaintyMeasureWithUnit::SetDescription(const Handle(TCollection_HAsciiString)& aDescription)
87 {
88         description = aDescription;
89 }
90
91 //=======================================================================
92 //function : Description
93 //purpose  : 
94 //=======================================================================
95
96 Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Description() const
97 {
98         return description;
99 }