version 1.28, 2001/12/24 02:23:02
|
version 1.29, 2002/01/09 19:09:38
|
|
|
*/ | */ |
CIMClass() : _rep(0) | CIMClass() : _rep(0) |
{ | { |
|
|
} | } |
| |
/** Constructor - Creates a class from a previous class | /** Constructor - Creates a class from a previous class |
|
|
| |
*/ | */ |
CIMClass( | CIMClass( |
const String& className, |
const CIMReference& reference, |
const String& superClassName = String()) | const String& superClassName = String()) |
{ | { |
_rep = new CIMClassRep(className, superClassName); |
_rep = new CIMClassRep(reference, superClassName); |
} | } |
| |
/// Destructor | /// Destructor |
|
|
return _rep->getClassName(); | return _rep->getClassName(); |
} | } |
| |
|
const CIMReference& getPath() const |
|
{ |
|
_checkRep(); |
|
return _rep->getPath(); |
|
} |
|
|
/** getSuperClassName - Gets the name of the Parent | /** getSuperClassName - Gets the name of the Parent |
@return String with parent class name. | @return String with parent class name. |
*/ | */ |
|
|
return *this; | return *this; |
} | } |
| |
|
|
|
|
/** findProperty - Finds the property object with the | /** findProperty - Finds the property object with the |
name defined by the input parameter in the class. | name defined by the input parameter in the class. |
@param String parameter with the property name. | @param String parameter with the property name. |
|
|
_checkRep(); | _checkRep(); |
return _rep->existsProperty(name); | return _rep->existsProperty(name); |
} | } |
|
|
Boolean existsProperty(const String& name) const | Boolean existsProperty(const String& name) const |
{ | { |
_checkRep(); | _checkRep(); |
|
|
_rep->printMof(o); | _rep->printMof(o); |
} | } |
| |
|
|
/** identical - Compares with another class | /** identical - Compares with another class |
ATTN: Clarify exactly what identical means | ATTN: Clarify exactly what identical means |
@param Class object for the class to be compared | @param Class object for the class to be compared |
|
|
| |
CIMConstClass() : _rep(0) | CIMConstClass() : _rep(0) |
{ | { |
|
|
} | } |
| |
CIMConstClass(const CIMConstClass& x) | CIMConstClass(const CIMConstClass& x) |
|
|
// Throws IllegalName if className argument not legal CIM identifier. | // Throws IllegalName if className argument not legal CIM identifier. |
| |
CIMConstClass( | CIMConstClass( |
const String& className, |
const CIMReference& reference, |
const String& superClassName = String()) | const String& superClassName = String()) |
{ | { |
_rep = new CIMClassRep(className, superClassName); |
_rep = new CIMClassRep(reference, superClassName); |
} | } |
| |
~CIMConstClass() | ~CIMConstClass() |
|
|
return _rep->getClassName(); | return _rep->getClassName(); |
} | } |
| |
|
const CIMReference& getPath() const |
|
{ |
|
_checkRep(); |
|
return _rep->getPath(); |
|
} |
|
|
const String& getSuperClassName() const | const String& getSuperClassName() const |
{ | { |
_checkRep(); | _checkRep(); |