42cf5bc1 |
1 | // Created on: 2001-04-24 |
2 | // Created by: Christian CAILLET |
3 | // Copyright (c) 2001-2014 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 _StepShape_MeasureQualification_HeaderFile |
17 | #define _StepShape_MeasureQualification_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <StepShape_HArray1OfValueQualifier.hxx> |
23 | #include <MMgt_TShared.hxx> |
24 | #include <Standard_Integer.hxx> |
25 | class TCollection_HAsciiString; |
26 | class StepBasic_MeasureWithUnit; |
27 | class StepShape_ValueQualifier; |
28 | |
29 | |
30 | class StepShape_MeasureQualification; |
31 | DEFINE_STANDARD_HANDLE(StepShape_MeasureQualification, MMgt_TShared) |
32 | |
33 | //! Added for Dimensional Tolerances |
34 | class StepShape_MeasureQualification : public MMgt_TShared |
35 | { |
36 | |
37 | public: |
38 | |
39 | |
40 | Standard_EXPORT StepShape_MeasureQualification(); |
41 | |
42 | Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& name, const Handle(TCollection_HAsciiString)& description, const Handle(StepBasic_MeasureWithUnit)& qualified_measure, const Handle(StepShape_HArray1OfValueQualifier)& qualifiers); |
43 | |
44 | Standard_EXPORT Handle(TCollection_HAsciiString) Name() const; |
45 | |
46 | Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& name); |
47 | |
48 | Standard_EXPORT Handle(TCollection_HAsciiString) Description() const; |
49 | |
50 | Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& description); |
51 | |
52 | Standard_EXPORT Handle(StepBasic_MeasureWithUnit) QualifiedMeasure() const; |
53 | |
54 | Standard_EXPORT void SetQualifiedMeasure (const Handle(StepBasic_MeasureWithUnit)& qualified_measure); |
55 | |
56 | Standard_EXPORT Handle(StepShape_HArray1OfValueQualifier) Qualifiers() const; |
57 | |
58 | Standard_EXPORT Standard_Integer NbQualifiers() const; |
59 | |
60 | Standard_EXPORT void SetQualifiers (const Handle(StepShape_HArray1OfValueQualifier)& qualifiers); |
61 | |
62 | Standard_EXPORT StepShape_ValueQualifier QualifiersValue (const Standard_Integer num) const; |
63 | |
64 | Standard_EXPORT void SetQualifiersValue (const Standard_Integer num, const StepShape_ValueQualifier& aqualifier); |
65 | |
66 | |
67 | |
68 | |
69 | DEFINE_STANDARD_RTTI(StepShape_MeasureQualification,MMgt_TShared) |
70 | |
71 | protected: |
72 | |
73 | |
74 | |
75 | |
76 | private: |
77 | |
78 | |
79 | Handle(TCollection_HAsciiString) theName; |
80 | Handle(TCollection_HAsciiString) theDescription; |
81 | Handle(StepBasic_MeasureWithUnit) theQualifiedMeasure; |
82 | Handle(StepShape_HArray1OfValueQualifier) theQualifiers; |
83 | |
84 | |
85 | }; |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | #endif // _StepShape_MeasureQualification_HeaderFile |