version 1.7, 2001/04/29 18:57:33
|
version 1.11, 2001/05/20 21:30:25
|
|
|
{ | { |
if (pos >= _properties.size()) | if (pos >= _properties.size()) |
throw OutOfBounds(); | throw OutOfBounds(); |
|
|
|
_properties.remove(pos); |
} | } |
| |
Uint32 CIMClassRep::findProperty(const String& name) | Uint32 CIMClassRep::findProperty(const String& name) |
|
|
return Uint32(-1); | return Uint32(-1); |
} | } |
| |
|
Boolean CIMClassRep::existsProperty(const String& name) |
|
{ |
|
return (findProperty(name) != Uint32(-1)) ? |
|
true : false; |
|
} |
|
|
CIMProperty CIMClassRep::getProperty(Uint32 pos) | CIMProperty CIMClassRep::getProperty(Uint32 pos) |
{ | { |
if (pos >= _properties.size()) | if (pos >= _properties.size()) |
|
|
return Uint32(-1); | return Uint32(-1); |
} | } |
| |
|
Boolean CIMClassRep::existsMethod(const String& name) |
|
{ |
|
return(findMethod(name) != Uint32(-1)) ? |
|
true : false; |
|
} |
CIMMethod CIMClassRep::getMethod(Uint32 pos) | CIMMethod CIMClassRep::getMethod(Uint32 pos) |
{ | { |
if (pos >= _methods.size()) | if (pos >= _methods.size()) |
|
|
{ | { |
return _methods.size(); | return _methods.size(); |
} | } |
|
//ATTN: Ks 18 May |
|
void CIMClassRep::removeMethod(Uint32 pos) |
|
{ |
|
if (pos >= _methods.size()) |
|
throw OutOfBounds(); |
|
|
|
_methods.remove(pos); |
|
} |
| |
void CIMClassRep::resolve( | void CIMClassRep::resolve( |
DeclContext* context, | DeclContext* context, |
|
|
= context->lookupClass(nameSpace, _superClassName); | = context->lookupClass(nameSpace, _superClassName); |
| |
if (!superClass) | if (!superClass) |
throw NoSuchSuperClass(_superClassName); |
throw PEGASUS_CIM_EXCEPTION(INVALID_SUPERCLASS, _superClassName); |
| |
#if 0 | #if 0 |
if (!superClass._rep->_resolved) | if (!superClass._rep->_resolved) |
|
|
out << "</CLASS>\n"; | out << "</CLASS>\n"; |
} | } |
| |
void CIMClassRep::print(std::ostream &os) const |
void CIMClassRep::print(PEGASUS_STD(ostream) &os) const |
{ | { |
Array<Sint8> tmp; | Array<Sint8> tmp; |
toXml(tmp); | toXml(tmp); |