version 1.38, 2004/05/18 11:03:38
|
version 1.39, 2004/05/31 10:47:41
|
|
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// Carol Ann Krug Graves, Hewlett-Packard Company | // Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
// Amit K Arora, IBM (amita@in.ibm.com) |
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include "CIMObjectPath.h" | #include "CIMObjectPath.h" |
#include "Indentor.h" | #include "Indentor.h" |
#include "CIMName.h" | #include "CIMName.h" |
|
#include "Destroyer.h" |
#include "XmlWriter.h" | #include "XmlWriter.h" |
#include "XmlReader.h" | #include "XmlReader.h" |
#include "ArrayInternal.h" | #include "ArrayInternal.h" |
|
|
}; | }; |
| |
| |
CIMKeyBinding::CIMKeyBinding(): |
CIMKeyBinding::CIMKeyBinding() |
_rep(new CIMKeyBindingRep()) |
|
{ | { |
|
_rep = new CIMKeyBindingRep(); |
} | } |
| |
CIMKeyBinding::CIMKeyBinding(const CIMKeyBinding& x): |
CIMKeyBinding::CIMKeyBinding(const CIMKeyBinding& x) |
_rep(new CIMKeyBindingRep(*(x._rep.get()))) |
|
{ | { |
|
_rep = new CIMKeyBindingRep(*x._rep); |
} | } |
| |
CIMKeyBinding::CIMKeyBinding(const CIMName& name, const String& value, Type type) : |
CIMKeyBinding::CIMKeyBinding(const CIMName& name, const String& value, Type type) |
_rep(new CIMKeyBindingRep(name, value, type)) |
|
{ | { |
|
_rep = new CIMKeyBindingRep(name, value, type); |
} | } |
| |
CIMKeyBinding::CIMKeyBinding(const CIMName& name, const CIMValue& value) | CIMKeyBinding::CIMKeyBinding(const CIMName& name, const CIMValue& value) |
|
|
break; | break; |
} | } |
| |
_rep.reset(new CIMKeyBindingRep(name, kbValue, kbType)); |
_rep = new CIMKeyBindingRep(name, kbValue, kbType); |
} | } |
| |
CIMKeyBinding::~CIMKeyBinding() | CIMKeyBinding::~CIMKeyBinding() |
{ | { |
|
delete _rep; |
} | } |
| |
CIMKeyBinding& CIMKeyBinding::operator=(const CIMKeyBinding& x) | CIMKeyBinding& CIMKeyBinding::operator=(const CIMKeyBinding& x) |
{ | { |
CIMKeyBindingRep *tmp = new CIMKeyBindingRep(*x._rep.get()); |
*_rep = *x._rep; |
_rep.reset(tmp); |
|
return *this; | return *this; |
} | } |
| |
|
|
}; | }; |
| |
| |
CIMObjectPath::CIMObjectPath() : |
CIMObjectPath::CIMObjectPath() |
_rep(new CIMObjectPathRep()) |
|
{ | { |
|
_rep = new CIMObjectPathRep(); |
} | } |
| |
CIMObjectPath::CIMObjectPath(const CIMObjectPath& x) : |
CIMObjectPath::CIMObjectPath(const CIMObjectPath& x) |
_rep(new CIMObjectPathRep(*x._rep.get())) |
|
{ | { |
|
_rep = new CIMObjectPathRep(*x._rep); |
} | } |
| |
CIMObjectPath::CIMObjectPath(const String& objectName) | CIMObjectPath::CIMObjectPath(const String& objectName) |
|
|
CIMObjectPath tmpRef; | CIMObjectPath tmpRef; |
tmpRef.set(objectName); | tmpRef.set(objectName); |
| |
_rep.reset(new CIMObjectPathRep(*tmpRef._rep.get())); |
_rep = new CIMObjectPathRep(*tmpRef._rep); |
} | } |
| |
CIMObjectPath::CIMObjectPath( | CIMObjectPath::CIMObjectPath( |
|
|
CIMObjectPath tmpRef; | CIMObjectPath tmpRef; |
tmpRef.set(host, nameSpace, className, keyBindings); | tmpRef.set(host, nameSpace, className, keyBindings); |
| |
_rep.reset(new CIMObjectPathRep(*tmpRef._rep.get())); |
_rep = new CIMObjectPathRep(*tmpRef._rep); |
} | } |
| |
CIMObjectPath::~CIMObjectPath() | CIMObjectPath::~CIMObjectPath() |
{ | { |
|
delete _rep; |
} | } |
| |
CIMObjectPath& CIMObjectPath::operator=(const CIMObjectPath& x) | CIMObjectPath& CIMObjectPath::operator=(const CIMObjectPath& x) |
{ | { |
CIMObjectPathRep *tmp = new CIMObjectPathRep(*x._rep.get()); |
*_rep = *x._rep; |
_rep.reset(tmp); |
|
return *this; | return *this; |
} | } |
| |