version 1.27, 2002/07/23 17:01:48
|
version 1.28, 2002/07/30 16:14:53
|
|
|
Inc(_rep); | Inc(_rep); |
} | } |
| |
CIMInstance::CIMInstance(const String& className) |
CIMInstance::CIMInstance(const CIMName& className) |
{ | { |
_rep = new CIMInstanceRep(className); |
_rep = new CIMInstanceRep(CIMObjectPath(String::EMPTY, CIMNamespaceName(), className)); |
} | } |
| |
CIMInstance::CIMInstance(CIMInstanceRep* rep) | CIMInstance::CIMInstance(CIMInstanceRep* rep) |
|
|
Dec(_rep); | Dec(_rep); |
} | } |
| |
const String& CIMInstance::getClassName() const |
const CIMName& CIMInstance::getClassName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getClassName(); | return _rep->getClassName(); |
|
|
return *this; | return *this; |
} | } |
| |
Uint32 CIMInstance::findQualifier(const String& name) const |
Uint32 CIMInstance::findQualifier(const CIMName& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
|
|
return *this; | return *this; |
} | } |
| |
Uint32 CIMInstance::findProperty(const String& name) const |
Uint32 CIMInstance::findProperty(const CIMName& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findProperty(name); | return _rep->findProperty(name); |
|
|
Inc(_rep); | Inc(_rep); |
} | } |
| |
CIMConstInstance::CIMConstInstance(const String& className) |
CIMConstInstance::CIMConstInstance(const CIMName& className) |
{ | { |
_rep = new CIMInstanceRep(className); |
_rep = new CIMInstanceRep(CIMObjectPath(String::EMPTY, CIMNamespaceName(), className)); |
} | } |
| |
CIMConstInstance& CIMConstInstance::operator=(const CIMConstInstance& x) | CIMConstInstance& CIMConstInstance::operator=(const CIMConstInstance& x) |
|
|
Dec(_rep); | Dec(_rep); |
} | } |
| |
const String& CIMConstInstance::getClassName() const |
const CIMName& CIMConstInstance::getClassName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getClassName(); | return _rep->getClassName(); |
|
|
return _rep->getPath(); | return _rep->getPath(); |
} | } |
| |
Uint32 CIMConstInstance::findQualifier(const String& name) const |
Uint32 CIMConstInstance::findQualifier(const CIMName& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
|
|
return _rep->getQualifierCount(); | return _rep->getQualifierCount(); |
} | } |
| |
Uint32 CIMConstInstance::findProperty(const String& name) const |
Uint32 CIMConstInstance::findProperty(const CIMName& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findProperty(name); | return _rep->findProperty(name); |