version 1.10, 2002/05/07 00:41:34
|
version 1.16, 2002/06/01 00:56:26
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
|
// The Open Group, Tivoli Systems |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
{ | { |
public: | public: |
| |
CIMObjectRep(const CIMReference& className); |
CIMObjectRep(const CIMObjectPath& className); |
| |
virtual ~CIMObjectRep(); | virtual ~CIMObjectRep(); |
| |
|
|
return _reference.getClassName(); | return _reference.getClassName(); |
} | } |
| |
const Boolean equalClassName(const String& classname) const |
const CIMObjectPath& getPath() const |
{ |
|
return (String::equalNoCase(classname, _reference.getClassName())); |
|
} |
|
|
|
const CIMReference& getPath() const |
|
{ | { |
return _reference; | return _reference; |
} | } |
| |
|
/** |
|
Sets the object path for the object |
|
@param path CIMObjectPath containing the object path |
|
*/ |
|
void setPath (const CIMObjectPath & path); |
|
|
void addQualifier(const CIMQualifier& qualifier) | void addQualifier(const CIMQualifier& qualifier) |
{ | { |
_qualifiers.add(qualifier); | _qualifiers.add(qualifier); |
|
|
| |
virtual void toXml(Array<Sint8>& out) const = 0; | virtual void toXml(Array<Sint8>& out) const = 0; |
| |
virtual void print(PEGASUS_STD(ostream)& os = PEGASUS_STD(cout)) const = 0; |
|
|
|
virtual CIMObjectRep* clone() const = 0; | virtual CIMObjectRep* clone() const = 0; |
| |
protected: | protected: |
|
|
| |
CIMObjectRep(const CIMObjectRep& x); | CIMObjectRep(const CIMObjectRep& x); |
| |
CIMReference _reference; |
CIMObjectPath _reference; |
CIMQualifierList _qualifiers; | CIMQualifierList _qualifiers; |
Array<CIMProperty> _properties; | Array<CIMProperty> _properties; |
Boolean _resolved; | Boolean _resolved; |
|
|
// not implicitly define a default copy constructor. | // not implicitly define a default copy constructor. |
CIMObjectRep& operator=(const CIMObjectRep& x) | CIMObjectRep& operator=(const CIMObjectRep& x) |
{ | { |
PEGASUS_ASSERT(0); |
//PEGASUS_ASSERT(0); |
return *this; | return *this; |
} | } |
| |