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
IMPLEMENT_STANDARD_RTTIEXT(StepBasic_UncertaintyMeasureWithUnit,StepBasic_MeasureWithUnit)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
Init(const Handle (StepBasic_MeasureValueMember)& aValueComponent,const StepBasic_Unit & aUnitComponent,const Handle (TCollection_HAsciiString)& aName,const Handle (TCollection_HAsciiString)& aDescription)34 void StepBasic_UncertaintyMeasureWithUnit::Init(
35 const Handle(StepBasic_MeasureValueMember)& aValueComponent,
36 const StepBasic_Unit& aUnitComponent,
37 const Handle(TCollection_HAsciiString)& aName,
38 const Handle(TCollection_HAsciiString)& aDescription)
39 {
40 // --- classe own fields ---
41 name = aName;
42 description = aDescription;
43 // --- classe inherited fields ---
44 StepBasic_MeasureWithUnit::Init(aValueComponent, aUnitComponent);
45 }
46
47
48 //=======================================================================
49 //function : SetName
50 //purpose :
51 //=======================================================================
52
SetName(const Handle (TCollection_HAsciiString)& aName)53 void StepBasic_UncertaintyMeasureWithUnit::SetName(const Handle(TCollection_HAsciiString)& aName)
54 {
55 name = aName;
56 }
57
58 //=======================================================================
59 //function : Name
60 //purpose :
61 //=======================================================================
62
Handle(TCollection_HAsciiString)63 Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Name() const
64 {
65 return name;
66 }
67
68 //=======================================================================
69 //function : SetDescription
70 //purpose :
71 //=======================================================================
72
SetDescription(const Handle (TCollection_HAsciiString)& aDescription)73 void StepBasic_UncertaintyMeasureWithUnit::SetDescription(const Handle(TCollection_HAsciiString)& aDescription)
74 {
75 description = aDescription;
76 }
77
78 //=======================================================================
79 //function : Description
80 //purpose :
81 //=======================================================================
82
Handle(TCollection_HAsciiString)83 Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Description() const
84 {
85 return description;
86 }
87