version 1.13, 2002/04/29 15:11:42
|
version 1.15, 2002/04/30 18:03:11
|
|
|
{ | { |
if (x._rep != _rep) | if (x._rep != _rep) |
{ | { |
|
if (_rep) |
|
{ |
Dec(_rep); | Dec(_rep); |
|
} |
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
return *this; | return *this; |
|
|
*/ | */ |
~CIMObject() | ~CIMObject() |
{ | { |
|
if (_rep) |
|
{ |
Dec(_rep); | Dec(_rep); |
} | } |
|
} |
| |
/** Accessor for ClassName component of the object. | /** Accessor for ClassName component of the object. |
@return - Returns the ClassName of the object in | @return - Returns the ClassName of the object in |
|
|
return _rep->getClassName(); | return _rep->getClassName(); |
} | } |
| |
/** isClassName Compares ClassName with a String. This test performs |
/** equalClassName Compares ClassName with a String. This test performs |
a comparison of the classname component of the object | a comparison of the classname component of the object |
with a String. Note that this function was included specifically | with a String. Note that this function was included specifically |
because the equality compare is not just a straight comparison | because the equality compare is not just a straight comparison |
|
|
@return True if it is the same class name (equalNoCase compare passes) | @return True if it is the same class name (equalNoCase compare passes) |
or false if not. | or false if not. |
*/ | */ |
const Boolean isClassName(const String& classname) const |
const Boolean equalClassName(const String& classname) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->isClassName(classname); |
return _rep->equalClassName(classname); |
| |
} | } |
const CIMReference& getPath() const | const CIMReference& getPath() const |
|
|
{ | { |
if (x._rep != _rep) | if (x._rep != _rep) |
{ | { |
|
if (_rep) |
|
{ |
Dec(_rep); | Dec(_rep); |
|
} |
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
return *this; | return *this; |
|
|
{ | { |
if (x._rep != _rep) | if (x._rep != _rep) |
{ | { |
|
if (_rep) |
|
{ |
Dec(_rep); | Dec(_rep); |
|
} |
Inc(_rep = x._rep); | Inc(_rep = x._rep); |
} | } |
return *this; | return *this; |
|
|
| |
~CIMConstObject() | ~CIMConstObject() |
{ | { |
|
if (_rep) |
|
{ |
Dec(_rep); | Dec(_rep); |
} | } |
|
} |
| |
const String& getClassName() const | const String& getClassName() const |
{ | { |