-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCComplexComponent.cpp
More file actions
63 lines (44 loc) · 1.08 KB
/
Copy pathCComplexComponent.cpp
File metadata and controls
63 lines (44 loc) · 1.08 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "CComplexComponent.h"
using namespace std;
CComplexComponent::CComplexComponent()
:
CAttributeList( OMDBase::NodeTypeEnum(OPEN_eComplexComponent) )
{
}
CComplexComponent::~CComplexComponent()
{
}
const char * CComplexComponent::getType(void) const
{
return "ComplexComponent";
}
string CComplexComponent::getDataType(void) const
{
const OMDBase * pBase = getKind("DataType");
const CAttributeValuePair * pAVP = dynamic_cast<const CAttributeValuePair *>( pBase );
string retVal = "";
if (pAVP)
{
retVal = pAVP->getValue();
}
return retVal;
}
string CComplexComponent::getCardinality(void) const
{
const OMDBase * pBase = getKind("Cardinality");
const CAttributeValuePair * pAVP = dynamic_cast<const CAttributeValuePair *>( pBase );
string retVal = "";
if (pAVP)
{
retVal = pAVP->getValue();
}
return retVal;
}
void CComplexComponent::Indirect( OMDTask * pVisitor) const
{
pVisitor->Process( this );
}
void CComplexComponent::Execute(OMDTask * pVisitor ) const
{
OMDNode::Execute( pVisitor );
}