version 1.20, 2002/05/14 03:27:25
|
version 1.28, 2002/06/01 00:56:25
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// 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: 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 |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
*/ | */ |
const String& getClassName() const; | const String& getClassName() const; |
| |
/** equalClassName Compares ClassName with a String. This test performs |
const CIMObjectPath& getPath() const; |
a comparison of the classname component of the object |
|
with a String. Note that this function was included specifically |
|
because the equality compare is not just a straight comparison |
|
because classnames are case independent. |
|
@param classname String containing the name for comparison |
|
@return True if it is the same class name (equalNoCase compare passes) |
|
or false if not. |
|
*/ |
|
const Boolean equalClassName(const String& classname) const; |
|
| |
const CIMReference& getPath() const; |
/** |
|
Sets the object path for the object |
|
@param path CIMObjectPath containing the object path |
|
*/ |
|
void setPath (const CIMObjectPath & path); |
| |
/** addQualifier - Adds the CIMQualifier object to the instance. | /** addQualifier - Adds the CIMQualifier object to the instance. |
Thows an exception of the CIMQualifier already exists in the instance | Thows an exception of the CIMQualifier already exists in the instance |
|
|
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
/** isNull() - ATTN: */ | /** isNull() - ATTN: */ |
Boolean isNull() const; | Boolean isNull() const; |
|
|
/** Convert object to XML format. |
|
*/ |
|
void toXml(Array<Sint8>& out) const; |
|
#endif | #endif |
| |
private: | private: |
|
|
#endif | #endif |
}; | }; |
| |
|
#define PEGASUS_ARRAY_T CIMObject |
|
# include <Pegasus/Common/ArrayInter.h> |
|
#undef PEGASUS_ARRAY_T |
|
|
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
// | // |
// CIMConstObject | // CIMConstObject |
|
|
| |
const String& getClassName() const; | const String& getClassName() const; |
| |
const CIMReference& getPath() const; |
const CIMObjectPath& getPath() const; |
| |
Uint32 findQualifier(const String& name) const; | Uint32 findQualifier(const String& name) const; |
| |
|
|
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
Boolean isNull() const; | Boolean isNull() const; |
|
|
void toXml(Array<Sint8>& out) const; |
|
|
|
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const; |
|
#endif | #endif |
| |
private: | private: |
|
|
#endif | #endif |
}; | }; |
| |
/** The CIMObjectWithPath encapsulates a CIMReference and CIMObject. |
|
Accessors are provided for getting the two parts. Constructors are |
|
provided for initializing it from a CIMObject. |
|
*/ |
|
class PEGASUS_COMMON_LINKAGE CIMObjectWithPath |
|
{ |
|
public: |
|
|
|
/** Constructor |
|
*/ |
|
CIMObjectWithPath(); |
|
|
|
/** constructor |
|
*/ |
|
CIMObjectWithPath(const CIMReference& reference, const CIMObject& object); |
|
|
|
/** Constructor - Constructs a CIMObjectWithPath Object from |
|
another CimObjectWithPath |
|
@param - ATTN |
|
*/ |
|
CIMObjectWithPath(const CIMObjectWithPath& x); |
|
|
|
~CIMObjectWithPath(); |
|
|
|
CIMObjectWithPath& operator=(const CIMObjectWithPath& x); |
|
|
|
/** set - |
|
*/ |
|
void set(const CIMReference& reference, const CIMObject& object); |
|
|
|
/** |
|
*/ |
|
const CIMReference& getReference() const; |
|
|
|
/** |
|
*/ |
|
const CIMObject& getObject() const; |
|
|
|
/** |
|
*/ |
|
CIMReference& getReference(); |
|
|
|
/** |
|
*/ |
|
CIMObject& getObject(); |
|
|
|
#ifdef PEGASUS_INTERNALONLY |
|
/** |
|
*/ |
|
void toXml(Array<Sint8>& out) const; |
|
#endif |
|
|
|
private: |
|
|
|
CIMReference _reference; |
|
CIMObject _object; |
|
}; |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_Object_h */ | #endif /* Pegasus_Object_h */ |