version 1.27, 2005/05/06 06:18:30
|
version 1.28, 2005/05/17 14:52:26
|
|
|
} | } |
| |
CIMObjectRep::CIMObjectRep(const CIMObjectPath& reference) | CIMObjectRep::CIMObjectRep(const CIMObjectPath& reference) |
: _reference(reference), |
: _resolved(false) |
_resolved(false) |
|
{ | { |
|
// ensure the class name is not null |
|
if(reference.getClassName().isNull()) |
|
{ |
|
throw UninitializedObjectException(); |
|
} |
|
|
|
_reference = reference; |
} | } |
| |
CIMObjectRep::~CIMObjectRep() | CIMObjectRep::~CIMObjectRep() |
|
|
| |
void CIMObjectRep::setPath (const CIMObjectPath& path) | void CIMObjectRep::setPath (const CIMObjectPath& path) |
{ | { |
|
// ensure the class name is not null |
|
if(path.getClassName().isNull()) |
|
{ |
|
throw UninitializedObjectException(); |
|
} |
|
|
// prevent changing the class name (type) in when updating the object path | // prevent changing the class name (type) in when updating the object path |
if(!_reference.getClassName().equal(path.getClassName())) | if(!_reference.getClassName().equal(path.getClassName())) |
{ | { |