7fd59977 |
1 | #include <StepRepr_CompoundRepresentationItem.ixx> |
2 | |
3 | StepRepr_CompoundRepresentationItem::StepRepr_CompoundRepresentationItem () { } |
4 | |
5 | void StepRepr_CompoundRepresentationItem::Init |
6 | (const Handle(TCollection_HAsciiString)& aName, |
7 | const Handle(StepRepr_HArray1OfRepresentationItem)& item_element) |
8 | { |
9 | StepRepr_RepresentationItem::Init (aName); |
10 | theItemElement = item_element; |
11 | } |
12 | |
13 | Handle(StepRepr_HArray1OfRepresentationItem) StepRepr_CompoundRepresentationItem::ItemElement () const |
14 | { return theItemElement; } |
15 | |
16 | Standard_Integer StepRepr_CompoundRepresentationItem::NbItemElement () const |
17 | { return (theItemElement.IsNull() ? 0 : theItemElement->Length()); } |
18 | |
19 | void StepRepr_CompoundRepresentationItem::SetItemElement |
20 | (const Handle(StepRepr_HArray1OfRepresentationItem)& item_element) |
21 | { theItemElement = item_element; } |
22 | |
23 | Handle(StepRepr_RepresentationItem) StepRepr_CompoundRepresentationItem::ItemElementValue |
24 | (const Standard_Integer num) const |
25 | { return theItemElement->Value(num); } |
26 | |
27 | void StepRepr_CompoundRepresentationItem::SetItemElementValue |
28 | (const Standard_Integer num, const Handle(StepRepr_RepresentationItem)& anelement) |
29 | { theItemElement->SetValue (num,anelement); } |