0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / StepBasic / StepBasic_UncertaintyMeasureWithUnit.cxx
CommitLineData
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_MeasureValueMember.hxx>
17#include <StepBasic_UncertaintyMeasureWithUnit.hxx>
18#include <StepBasic_Unit.hxx>
19#include <TCollection_HAsciiString.hxx>
7fd59977 20
92efcf78 21IMPLEMENT_STANDARD_RTTIEXT(StepBasic_UncertaintyMeasureWithUnit,StepBasic_MeasureWithUnit)
22
7fd59977 23//=======================================================================
24//function : StepBasic_UncertaintyMeasureWithUnit
25//purpose :
26//=======================================================================
7fd59977 27StepBasic_UncertaintyMeasureWithUnit::StepBasic_UncertaintyMeasureWithUnit () {}
28
29//=======================================================================
30//function : Init
31//purpose :
32//=======================================================================
33
7fd59977 34void 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
53void StepBasic_UncertaintyMeasureWithUnit::SetName(const Handle(TCollection_HAsciiString)& aName)
54{
55 name = aName;
56}
57
58//=======================================================================
59//function : Name
60//purpose :
61//=======================================================================
62
63Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Name() const
64{
65 return name;
66}
67
68//=======================================================================
69//function : SetDescription
70//purpose :
71//=======================================================================
72
73void StepBasic_UncertaintyMeasureWithUnit::SetDescription(const Handle(TCollection_HAsciiString)& aDescription)
74{
75 description = aDescription;
76}
77
78//=======================================================================
79//function : Description
80//purpose :
81//=======================================================================
82
83Handle(TCollection_HAsciiString) StepBasic_UncertaintyMeasureWithUnit::Description() const
84{
85 return description;
86}