blob: 1ca116668364c8f49fa0d863bb803fc10a50f655 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#include <StepBasic_ProductRelatedProductCategory.ixx>
StepBasic_ProductRelatedProductCategory::StepBasic_ProductRelatedProductCategory () {}
void StepBasic_ProductRelatedProductCategory::Init(
const Handle(TCollection_HAsciiString)& aName,
const Standard_Boolean hasAdescription,
const Handle(TCollection_HAsciiString)& aDescription)
{
StepBasic_ProductCategory::Init(aName, hasAdescription, aDescription);
}
void StepBasic_ProductRelatedProductCategory::Init(
const Handle(TCollection_HAsciiString)& aName,
const Standard_Boolean hasAdescription,
const Handle(TCollection_HAsciiString)& aDescription,
const Handle(StepBasic_HArray1OfProduct)& aProducts)
{
// --- classe own fields ---
products = aProducts;
// --- classe inherited fields ---
StepBasic_ProductCategory::Init(aName, hasAdescription, aDescription);
}
void StepBasic_ProductRelatedProductCategory::SetProducts(const Handle(StepBasic_HArray1OfProduct)& aProducts)
{
products = aProducts;
}
Handle(StepBasic_HArray1OfProduct) StepBasic_ProductRelatedProductCategory::Products() const
{
return products;
}
Handle(StepBasic_Product) StepBasic_ProductRelatedProductCategory::ProductsValue(const Standard_Integer num) const
{
return products->Value(num);
}
Standard_Integer StepBasic_ProductRelatedProductCategory::NbProducts () const
{
if (products.IsNull()) return 0;
return products->Length();
}
|