version 1.56, 2008/03/05 21:31:44
|
version 1.58, 2008/04/11 17:14:03
|
|
|
_nameTag = generateCIMNameTag(_name); | _nameTag = generateCIMNameTag(_name); |
} | } |
| |
CIMMethodRep::~CIMMethodRep() |
|
{ |
|
} |
|
|
|
void CIMMethodRep::setName(const CIMName& name) | void CIMMethodRep::setName(const CIMName& name) |
{ | { |
// ensure name is not null | // ensure name is not null |
|
|
_nameTag = generateCIMNameTag(_name); | _nameTag = generateCIMNameTag(_name); |
} | } |
| |
void CIMMethodRep::setClassOrigin(const CIMName& classOrigin) |
|
{ |
|
_classOrigin = classOrigin; |
|
} |
|
|
|
void CIMMethodRep::addParameter(const CIMParameter& x) | void CIMMethodRep::addParameter(const CIMParameter& x) |
{ | { |
if (x.isUninitialized()) | if (x.isUninitialized()) |
|
|
_parameters.append(x); | _parameters.append(x); |
} | } |
| |
Uint32 CIMMethodRep::findParameter(const CIMName& name) const |
|
{ |
|
return _parameters.find(name, generateCIMNameTag(name)); |
|
} |
|
|
|
CIMParameter CIMMethodRep::getParameter(Uint32 index) |
|
{ |
|
if (index >= _parameters.size()) |
|
throw IndexOutOfBoundsException(); |
|
|
|
return _parameters[index]; |
|
} |
|
|
|
void CIMMethodRep::removeParameter(Uint32 index) |
|
{ |
|
if (index >= _parameters.size()) |
|
throw IndexOutOfBoundsException(); |
|
|
|
_parameters.remove (index); |
|
} |
|
|
|
Uint32 CIMMethodRep::getParameterCount() const |
|
{ |
|
return _parameters.size(); |
|
} |
|
|
|
void CIMMethodRep::resolve( | void CIMMethodRep::resolve( |
DeclContext* declContext, | DeclContext* declContext, |
const CIMNamespaceName& nameSpace, | const CIMNamespaceName& nameSpace, |
|
|
return true; | return true; |
} | } |
| |
void CIMMethodRep::setType(CIMType type) |
|
{ |
|
_type = type; |
|
} |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |