version 1.48, 2002/06/01 00:56:22
|
version 1.49, 2002/06/03 22:42:04
|
|
|
| |
Use one of the other constructors to create an initiated new CIM class | Use one of the other constructors to create an initiated new CIM class |
object. | object. |
@exception Throws an exception "unitialized handle" if this |
@exception "unitialized handle" if this |
unitialized handle is used | unitialized handle is used |
/REF(HPEGASUS_HANDLES) |
|
*/ | */ |
CIMClass(); | CIMClass(); |
| |
|
|
PEGASUS_EXPLICIT CIMClass(const CIMObject& x) | PEGASUS_EXPLICIT CIMClass(const CIMObject& x) |
throw(DynamicCastFailed); | throw(DynamicCastFailed); |
| |
|
// ATTN define what makes up a legal CIM class name |
/** Constructor - Creates a Class from inputs of a classname and | /** Constructor - Creates a Class from inputs of a classname and |
SuperClassName | SuperClassName |
@param className CIMObjectPath representing name of the class being created | @param className CIMObjectPath representing name of the class being created |
@param superClassName String representing name of the SuperClass | @param superClassName String representing name of the SuperClass |
ATTN: Define what makes up legal name. |
|
@return Throws IllegalName if className argument illegal CIM identifier. | @return Throws IllegalName if className argument illegal CIM identifier. |
<pre> | <pre> |
CIMClass NewCass("MyClass", "YourClass"); | CIMClass NewCass("MyClass", "YourClass"); |
|
|
*/ | */ |
Boolean isAbstract() const; | Boolean isAbstract() const; |
| |
|
// ATTN: COMMENT. Why not just get name so we have common method for all. |
/** getClassName Gets the name of the class | /** getClassName Gets the name of the class |
ATTN: COMMENT. Why not just get name so we have common method for all. |
|
@return Returns string with the class name. | @return Returns string with the class name. |
*/ | */ |
const String& getClassName() const; | const String& getClassName() const; |
|
|
*/ | */ |
const String& getSuperClassName() const; | const String& getSuperClassName() const; |
| |
|
// ATTN define what's a legal class name |
/** setSuperClassName - Sets the name of the parent class from | /** setSuperClassName - Sets the name of the parent class from |
the input parameter. \REF{CLASSNAME}. ATTN: Define legal classnames |
the input parameter. \REF{CLASSNAME}. |
@param String defining parent name. | @param String defining parent name. |
@return Throws IllegalName if superClassName argument not legal CIM | @return Throws IllegalName if superClassName argument not legal CIM |
identifier | identifier |
|
|
| |
/** getQualifierCount - Returns the number of qualifiers | /** getQualifierCount - Returns the number of qualifiers |
in the class. | in the class. |
@return ATTN: |
@return the number of qualifiers on the class definition (not |
|
those on properties or methods) |
*/ | */ |
Uint32 getQualifierCount() const; | Uint32 getQualifierCount() const; |
| |
|
|
*/ | */ |
Boolean existsProperty(const String& name) const; | Boolean existsProperty(const String& name) const; |
| |
|
// ATTN: Should we not use something like handle for position??? |
|
// ATTN: what is error return? |
/** getProperty - Returns a property representing the property | /** getProperty - Returns a property representing the property |
defined by the input parameter | defined by the input parameter |
@param position for this property | @param position for this property |
ATTN: Should we not use something like handle for position??? |
|
@return CIMProperty object | @return CIMProperty object |
ATTN: what is error return? |
|
*/ | */ |
CIMProperty getProperty(Uint32 pos); | CIMProperty getProperty(Uint32 pos); |
| |
|
|
/** Makes a deep copy (clone) of the given object. */ | /** Makes a deep copy (clone) of the given object. */ |
CIMClass clone() const; | CIMClass clone() const; |
| |
|
// ATTN: Clarify exactly what identical means |
/** identical - Compares with another class | /** identical - Compares with another class |
ATTN: Clarify exactly what identical means |
|
@param Class object for the class to be compared | @param Class object for the class to be compared |
@return True if the classes are identical | @return True if the classes are identical |
*/ | */ |
Boolean identical(const CIMConstClass& x) const; | Boolean identical(const CIMConstClass& x) const; |
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
|
// ATTN: explain why this here |
/** Resolve - Resolve the class: inherit any properties and | /** Resolve - Resolve the class: inherit any properties and |
qualifiers. Make sure the superClass really exists and is consistent | qualifiers. Make sure the superClass really exists and is consistent |
with this class. Also set the propagated flag class-origin for each | with this class. Also set the propagated flag class-origin for each |
class feature. | class feature. |
ATTN: explain why this here |
|
*/ | */ |
void resolve( | void resolve( |
DeclContext* declContext, | DeclContext* declContext, |
const String& nameSpace); | const String& nameSpace); |
| |
/// isNull - ATTN: |
// isNull - ATTN: |
Boolean isNull() const; | Boolean isNull() const; |
#endif | #endif |
| |
|
|
#include <Pegasus/Common/ArrayInter.h> | #include <Pegasus/Common/ArrayInter.h> |
#undef PEGASUS_ARRAY_T | #undef PEGASUS_ARRAY_T |
| |
/** CIMConstClass - ATTN: define this. |
// ATTN document this |
|
/** CIMConstClass |
*/ | */ |
class PEGASUS_COMMON_LINKAGE CIMConstClass | class PEGASUS_COMMON_LINKAGE CIMConstClass |
{ | { |