summaryrefslogtreecommitdiff
path: root/src/StepAP214/StepAP214_AppliedApprovalAssignment.cxx
blob: d98502d34e52d18cb1535e95a0163dd116bedaa6 (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
#include <StepAP214_AppliedApprovalAssignment.ixx>


StepAP214_AppliedApprovalAssignment::StepAP214_AppliedApprovalAssignment ()  {}

void StepAP214_AppliedApprovalAssignment::Init(
	const Handle(StepBasic_Approval)& aAssignedApproval)
{

	StepBasic_ApprovalAssignment::Init(aAssignedApproval);
}

void StepAP214_AppliedApprovalAssignment::Init(
	const Handle(StepBasic_Approval)& aAssignedApproval,
	const Handle(StepAP214_HArray1OfApprovalItem)& aItems)
{
	// --- classe own fields ---
	items = aItems;
	// --- classe inherited fields ---
	StepBasic_ApprovalAssignment::Init(aAssignedApproval);
}


void StepAP214_AppliedApprovalAssignment::SetItems(const Handle(StepAP214_HArray1OfApprovalItem)& aItems)
{
	items = aItems;
}

Handle(StepAP214_HArray1OfApprovalItem) StepAP214_AppliedApprovalAssignment::Items() const
{
	return items;
}

StepAP214_ApprovalItem StepAP214_AppliedApprovalAssignment::ItemsValue(const Standard_Integer num) const
{
	return items->Value(num);
}

Standard_Integer StepAP214_AppliedApprovalAssignment::NbItems () const
{
	return items->Length();
}