0026371: Implementation of new entities for GD&T
[occt.git] / src / StepRepr / StepRepr_RepresentationRelationship.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 <StepRepr_Representation.hxx>
17 #include <StepRepr_RepresentationRelationship.hxx>
18 #include <TCollection_HAsciiString.hxx>
19
20 StepRepr_RepresentationRelationship::StepRepr_RepresentationRelationship ()  {}
21
22 void StepRepr_RepresentationRelationship::Init(
23         const Handle(TCollection_HAsciiString)& aName,
24         const Handle(TCollection_HAsciiString)& aDescription,
25         const Handle(StepRepr_Representation)& aRep1,
26         const Handle(StepRepr_Representation)& aRep2)
27 {
28         // --- classe own fields ---
29         name = aName;
30         description = aDescription;
31         rep1 = aRep1;
32         rep2 = aRep2;
33 }
34
35
36 void StepRepr_RepresentationRelationship::SetName(const Handle(TCollection_HAsciiString)& aName)
37 {
38         name = aName;
39 }
40
41 Handle(TCollection_HAsciiString) StepRepr_RepresentationRelationship::Name() const
42 {
43         return name;
44 }
45
46 void StepRepr_RepresentationRelationship::SetDescription(const Handle(TCollection_HAsciiString)& aDescription)
47 {
48         description = aDescription;
49 }
50
51 Handle(TCollection_HAsciiString) StepRepr_RepresentationRelationship::Description() const
52 {
53         return description;
54 }
55
56 void StepRepr_RepresentationRelationship::SetRep1(const Handle(StepRepr_Representation)& aRep1)
57 {
58         rep1 = aRep1;
59 }
60
61 Handle(StepRepr_Representation) StepRepr_RepresentationRelationship::Rep1() const
62 {
63         return rep1;
64 }
65
66 void StepRepr_RepresentationRelationship::SetRep2(const Handle(StepRepr_Representation)& aRep2)
67 {
68         rep2 = aRep2;
69 }
70
71 Handle(StepRepr_Representation) StepRepr_RepresentationRelationship::Rep2() const
72 {
73         return rep2;
74 }