summaryrefslogtreecommitdiff
path: root/src/StepBasic/StepBasic_PersonOrganizationSelect.cxx
blob: 4b4db488b55332d5a75e64e45504f63483f6142f (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

#include <StepBasic_PersonOrganizationSelect.ixx>
#include <Interface_Macros.hxx>

StepBasic_PersonOrganizationSelect::StepBasic_PersonOrganizationSelect () {  }

Standard_Integer StepBasic_PersonOrganizationSelect::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepBasic_Person))) return 1;
	if (ent->IsKind(STANDARD_TYPE(StepBasic_Organization))) return 2;
	if (ent->IsKind(STANDARD_TYPE(StepBasic_PersonAndOrganization))) return 3;
	return 0;
}

Handle(StepBasic_Person) StepBasic_PersonOrganizationSelect::Person () const
{
	return GetCasted(StepBasic_Person,Value());
}

Handle(StepBasic_Organization) StepBasic_PersonOrganizationSelect::Organization () const
{
	return GetCasted(StepBasic_Organization,Value());
}

Handle(StepBasic_PersonAndOrganization) StepBasic_PersonOrganizationSelect::PersonAndOrganization () const
{
	return GetCasted(StepBasic_PersonAndOrganization,Value());
}