OW_NAMESPACE::CIMClass Class Reference

The CIMClass encapsulates all information that pertains to a CIM class (i.e. More...

#include <OW_CIMClass.hpp>

Inheritance diagram for OW_NAMESPACE::CIMClass:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::CIMClass:

Collaboration graph
[legend]
List of all members.

Public Types

typedef COWIntrusiveReference<
CLSData > CIMClass::* 
safe_bool
enum  { SERIALIZATION_VERSION = 2 }
 Binary serialization version. More...

Public Member Functions

 CIMClass ()
 Create a new CIMClass object.
 CIMClass (CIMNULL_t)
 Create a new NULL CIMClass object.
 CIMClass (const CIMName &name)
 Create an CIMClass object with the given name.
 CIMClass (const char *name)
 Create an CIMClass object with the given name.
 CIMClass (const CIMClass &x)
 ~CIMClass ()
 Destroy this CIMClass object and decrement the refcount on the underlying data.
CIMClassoperator= (const CIMClass &x)
virtual void setNull ()
 Set this to a null object.
String getSuperClass () const
 In the future, this function will be changed to return a CIMName.
String getKeyClass () const
 In the future, this function will be changed to return a CIMName.
CIMClasssetSuperClass (const CIMName &pname)
 Set the name of the parent CIM class for this CIMClass object.
bool isKeyed () const
CIMClasssetIsAssociation (bool isAssocFlag)
 Set the flag that indicates this CIMClass is an association.
CIMClasssetIsKeyed (bool isKeyedParm=true)
 Set the flag that indicates this CIMClass has keys.
CIMPropertyArray getKeys () const
CIMQualifier getQualifier (const CIMName &name) const
 Get a named qualifier from this class.
CIMProperty getProperty (const CIMName &name) const
 Get a named property from this class.
CIMProperty getProperty (const CIMName &name, const CIMName &originClass) const
 Get a named property from this CIMClass.
CIMMethod getMethod (const CIMName &name) const
 Get the method associated with the given name.
CIMMethod getMethod (const CIMName &name, const CIMName &originClass) const
 Get the method associated with the given name from this CIMClass considering the given origin class in the process.
bool isAssociation () const
CIMQualifierArray getQualifiers () const
CIMPropertyArray getAllProperties () const
CIMPropertyArray getProperties () const
CIMMethodArray getAllMethods () const
CIMMethodArray getMethods () const
CIMClassaddProperty (const CIMProperty &prop)
 Add a property to this class.
int numberOfProperties () const
CIMClasssetProperties (const CIMPropertyArray &props)
 Set the properties for this class.
CIMClasssetProperty (const CIMProperty &prop)
 Update a property on this CIMClass if it exists.
CIMClassaddQualifier (const CIMQualifier &qual)
 Add a qualifier to this class.
bool hasQualifier (const CIMQualifier &qual) const
 Check for the existence of a qualifier in this class.
int numberOfQualifiers () const
bool removeQualifier (const CIMQualifier &qual)
 Remove a qualifier from this class.
bool removeQualifier (const CIMName &name)
 Remove a qualifier from this class.
bool removeProperty (const CIMName &name)
 Remove a property from this class.
CIMClasssetQualifiers (const CIMQualifierArray &quals)
 Set the qualifiers for this class.
CIMClasssetQualifier (const CIMQualifier &qual)
 Set the given qualifier on this CIMClass if it is present.
CIMClassaddMethod (const CIMMethod &meth)
 Add a method to this class.
CIMClasssetMethods (const CIMMethodArray &meths)
 Set the methods for this class.
CIMClasssetMethod (const CIMMethod &meth)
 Update/add a method on this CIMClass object.
CIMInstance newInstance () const
 Create a new instance of this CIM Class.
CIMClass clone (WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN, const StringArray &propertyList=StringArray(), bool noProps=false) const
 Create an CIMClass based on this object, using the specified criteria.
CIMClass filterProperties (const StringArray &propertyList, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin) const
 Create a CIMClass that contains properties from this CIMClass that are found in the given list of property names.
StringArray getCloneProps (WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EDeepFlag deep, const StringArray *propertyList, const CIMClass &requestedClass) const
 Return a list of all the properties that will be required to clone an instance.
StringArray getCloneProps (WBEMFlags::ELocalOnlyFlag localOnly, const StringArray *propertyList) const
 Return a list of all the properties that will be required to clone an instance.
virtual String getName () const
 In the future, this function will be changed to return a CIMName.
virtual void setName (const CIMName &name)
 Set the name associated with this CIMClass object.
virtual void readObject (std::istream &istrm)
 Read this CIMClass object from an input stream.
virtual void writeObject (std::ostream &ostrm) const
 Write this CIMClass object to an output stream.
virtual String toMOF () const
virtual String toString () const
 operator safe_bool () const
bool operator! () const

Static Public Attributes

static const char *const NAMESPACECLASS OW_DEPRECATED
 Name of the internal namespace class.

Private Attributes

COWIntrusiveReference< CLSDatam_pdata

Friends

OW_COMMON_API bool operator< (const CIMClass &x, const CIMClass &y)
OW_COMMON_API bool operator== (const CIMClass &x, const CIMClass &y)

Classes

struct  CLSData

Detailed Description

The CIMClass encapsulates all information that pertains to a CIM class (i.e.

properties, methods, qualifiers, etc...). CIMClass objects are ref counted/copy on write objects. It is not considered good practice to hold onto the pointer of an CIMClass object since the ref counting mechanism is driven by the construction and destruction process.

Definition at line 58 of file OW_CIMClass.hpp.


Member Typedef Documentation

typedef COWIntrusiveReference<CLSData> CIMClass::* OW_NAMESPACE::CIMClass::safe_bool
 

Definition at line 405 of file OW_CIMClass.hpp.


Member Enumeration Documentation

anonymous enum
 

Binary serialization version.

Version 1 had a language. Since a class doesn't actually have a language it was removed for version 2

Enumerator:
SERIALIZATION_VERSION 

Definition at line 70 of file OW_CIMClass.hpp.


Constructor & Destructor Documentation

CIMClass::CIMClass  ) 
 

Create a new CIMClass object.

Definition at line 94 of file OW_CIMClass.cpp.

CIMClass::CIMClass CIMNULL_t   )  [explicit]
 

Create a new NULL CIMClass object.

Do not call any methods on it or your app may crash.

Definition at line 99 of file OW_CIMClass.cpp.

CIMClass::CIMClass const CIMName name  )  [explicit]
 

Create an CIMClass object with the given name.

Parameters:
name The name for this CIMClass specified as an String.

Definition at line 110 of file OW_CIMClass.cpp.

References m_pdata, and name.

CIMClass::CIMClass const char *  name  )  [explicit]
 

Create an CIMClass object with the given name.

Parameters:
name The name for this CIMClass specified as a NULL terminated string.

Definition at line 104 of file OW_CIMClass.cpp.

References m_pdata.

CIMClass::CIMClass const CIMClass x  ) 
 

Definition at line 792 of file OW_CIMClass.cpp.

CIMClass::~CIMClass  ) 
 

Destroy this CIMClass object and decrement the refcount on the underlying data.

Definition at line 788 of file OW_CIMClass.cpp.


Member Function Documentation

CIMClass & CIMClass::addMethod const CIMMethod meth  ) 
 

Add a method to this class.

Parameters:
meth The CIMMethod to add to this class
Returns:
a reference to *this

Definition at line 536 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitClassFeatureMethodDeclaration().

CIMClass & CIMClass::addProperty const CIMProperty prop  ) 
 

Add a property to this class.

Parameters:
prop The property to add to this class.
Returns:
a reference to *this

Definition at line 334 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::CIMServer::_getNameSpaceClass(), OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::MOF::CIMOMVisitor::VisitClassFeaturePropertyDeclaration(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitClassFeatureReferenceDeclaration().

CIMClass & CIMClass::addQualifier const CIMQualifier qual  ) 
 

Add a qualifier to this class.

Parameters:
qual The CIMQualifier to add to this class.
Returns:
a reference to *this

Definition at line 393 of file OW_CIMClass.cpp.

References i.

Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitAssocDeclaration(), OW_NAMESPACE::MOF::CIMOMVisitor::VisitClassDeclaration(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitIndicDeclaration().

CIMClass CIMClass::clone WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_INCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_INCLUDE_CLASS_ORIGIN,
const StringArray propertyList = StringArray(),
bool  noProps = false
const
 

Create an CIMClass based on this object, using the specified criteria.

Parameters:
localOnly If true, only include local elements.
includeQualifiers If true, include the qualifiers for this class.
includeClassOrigin If true, include the class origin.
propertyList A list that specifies the properties to allow in the XML.
noProps If true, no properties will be included in the xml
Returns:
A new CIMClass object that is based on this one, with the appropriate component filtered according to the parameters.

Definition at line 571 of file OW_CIMClass.cpp.

References OW_NAMESPACE::CIMNULL, i, m_pdata, and theClass.

Referenced by OW_NAMESPACE::MetaRepository::_getClassNodes(), and OW_NAMESPACE::MetaRepository::getCIMClass().

CIMClass CIMClass::filterProperties const StringArray propertyList,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin
const
 

Create a CIMClass that contains properties from this CIMClass that are found in the given list of property names.

Optionally include qualifiers and the class origin.

Parameters:
propertyList An StringArray that contains the property names of the properties that should be copied from this CIMClass.
includeQualifiers Include the qualifiers if this is true.
includeClassOrigin Include the class origin if this is true.
Returns:
A new CIMClass constructed per the given parameters.

Definition at line 562 of file OW_CIMClass.cpp.

References OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, and propertyList.

CIMMethodArray CIMClass::getAllMethods  )  const
 

Returns:
All the methods for this class, including overides.

Definition at line 312 of file OW_CIMClass.cpp.

CIMPropertyArray CIMClass::getAllProperties  )  const
 

Returns:
All properties for this CIMClass, including overides.

Definition at line 277 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MetaRepository::_resolveClass(), OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), OW_NAMESPACE::MetaRepository::adjustClass(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessClass(), OW_NAMESPACE::CIMRepository::createClass(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::filterInstances(), and OW_NAMESPACE::CIMInstance::syncWithClass().

StringArray CIMClass::getCloneProps WBEMFlags::ELocalOnlyFlag  localOnly,
const StringArray propertyList
const
 

Return a list of all the properties that will be required to clone an instance.

This is also useful for indication providers to get a list of the properties that the client requested, so it can avoid doing expensive operations needlessly.

Parameters:
localOnly If true, don't include superclass properties.
propertyList A list that specifies the properties list of properties that can be returned.
Returns:
A list of properties that are requested based on the parameters.

Definition at line 906 of file OW_CIMClass.cpp.

References propertyList, and OW_NAMESPACE::Array< T >::size().

StringArray CIMClass::getCloneProps WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EDeepFlag  deep,
const StringArray propertyList,
const CIMClass requestedClass
const
 

Return a list of all the properties that will be required to clone an instance.

This is also useful for indication providers to get a list of the properties that the client requested, so it can avoid doing expensive operations needlessly.

Parameters:
localOnly If true, don't include superclass properties.
deep If true, include subclass properties.
propertyList A list that specifies the properties list of properties that can be returned.
requestedClass The class that was requested in enumInstances.
Returns:
A list of properties that are requested based on the parameters.

Definition at line 855 of file OW_CIMClass.cpp.

References propertyList, and OW_NAMESPACE::Array< T >::size().

String CIMClass::getKeyClass  )  const
 

In the future, this function will be changed to return a CIMName.

Returns:
The name of the CIM class that declared the keys for this class.

Definition at line 283 of file OW_CIMClass.cpp.

References i.

CIMPropertyArray CIMClass::getKeys  )  const
 

Returns:
The properties that are flagged as keys for this CIMClass as as array of CIMProperty objects.

Definition at line 149 of file OW_CIMClass.cpp.

References OW_NAMESPACE::Array< T >::append(), and i.

Referenced by OW_NAMESPACE::CIMRepository2::_validatePropagatedKeys(), OW_NAMESPACE::CIMRepository::_validatePropagatedKeys(), OW_NAMESPACE::InstanceRepository2::makeInstanceKey(), OW_NAMESPACE::InstanceRepository::makeInstanceKey(), and OW_NAMESPACE::CIMObjectPath::syncWithClass().

CIMMethod CIMClass::getMethod const CIMName name,
const CIMName originClass
const
 

Get the method associated with the given name from this CIMClass considering the given origin class in the process.

Parameters:
name The name of the method to retrieve
originClass The name of the CIM class where the method originated.
Returns:
The CIMMethod associated with the given name on success. Otherwise a NULL CIMMethod object.

Definition at line 223 of file OW_CIMClass.cpp.

References i, and name.

CIMMethod CIMClass::getMethod const CIMName name  )  const
 

Get the method associated with the given name.

Parameters:
name The name of the method to retrieve. If the name is in the form "originclass.methodname" the origin class of the method will be considered during the search. Otherwise the first method with the given name will be returned.
Returns:
The CIMMethod associated with the name, if found. Otherwise a NULL CIMMethod object.

Definition at line 217 of file OW_CIMClass.cpp.

References name.

CIMMethodArray CIMClass::getMethods  )  const
 

Returns:
The methods for this class, excluding the overides.

Definition at line 318 of file OW_CIMClass.cpp.

References OW_NAMESPACE::Array< T >::append(), and i.

String CIMClass::getName  )  const [virtual]
 

In the future, this function will be changed to return a CIMName.

Returns:
The name associated with this CIMClass object as an String object.

Implements OW_NAMESPACE::CIMElement.

Definition at line 811 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), OW_NAMESPACE::MetaRepository::adjustClass(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessClass(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessClassAux(), OW_NAMESPACE::CIMtoXML(), OW_NAMESPACE::CIMInstance::clone(), OW_NAMESPACE::MetaRepository::createClass(), OW_NAMESPACE::InstanceRepository::createClass(), OW_NAMESPACE::CIMServer::createClass(), OW_NAMESPACE::CIMRepository2::createClass(), OW_NAMESPACE::OpenWBEM_UnitaryComputerSystem::doSimpleEnumInstances(), OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv::doSimpleEnumInstances(), OW_NAMESPACE::embedClassInInstance(), OW_NAMESPACE::PerlInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::NPIInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::PerlInstanceProviderProxy::enumInstances(), OW_NAMESPACE::NPIInstanceProviderProxy::enumInstances(), OW_NAMESPACE::CIMServer::enumInstances(), OW_NAMESPACE::ProviderManager::getAssociatorProvider(), OW_NAMESPACE::CIMRepository2::getClass(), OW_NAMESPACE::CIMRepository::getClass(), OW_NAMESPACE::PerlInstanceProviderProxy::getInstance(), OW_NAMESPACE::NPIInstanceProviderProxy::getInstance(), OW_NAMESPACE::InstanceRepository::getInstanceNames(), OW_NAMESPACE::ProviderManager::getInstanceProvider(), OW_NAMESPACE::ProviderManager::getMethodProvider(), OW_NAMESPACE::MetaRepository::modifyClass(), OW_NAMESPACE::CIMServer::modifyClass(), OW_NAMESPACE::CIMRepository2::modifyClass(), OW_NAMESPACE::CIMRepository::modifyClass(), and OW_NAMESPACE::XMLClass::readClass().

CIMPropertyArray CIMClass::getProperties  )  const
 

Returns:
The properties for this CIMClass, excluding the overides.

Definition at line 297 of file OW_CIMClass.cpp.

References OW_NAMESPACE::Array< T >::append(), and i.

CIMProperty CIMClass::getProperty const CIMName name,
const CIMName originClass
const
 

Get a named property from this CIMClass.

Parameters:
name The name of the property to to retreive.
originClass The name of the origin class the property comes from.
Returns:
The CIMProperty associated with the given name and origin, if found. Otherwise a NULL CIMProperty object.

Definition at line 184 of file OW_CIMClass.cpp.

References i, and name.

CIMProperty CIMClass::getProperty const CIMName name  )  const
 

Get a named property from this class.

Parameters:
name The name of the property to retrieve. If the name is in the form "originclass.propertyname" the origin class of the property will be considered during the search. Otherwise the first property found with the given name will be returned.
Returns:
CIMProperty associated with the name if found. Otherwise a NULL CIMProperty object.

Definition at line 178 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::CIMInstance::clone(), OW_NAMESPACE::CIMInstance::createModifiedInstance(), OW_NAMESPACE::CIMServer::getProperty(), OW_NAMESPACE::CIMRepository2::getProperty(), OW_NAMESPACE::CIMRepository::getProperty(), OW_NAMESPACE::CIMServer::setProperty(), OW_NAMESPACE::CIMRepository2::setProperty(), OW_NAMESPACE::CIMRepository::setProperty(), OW_NAMESPACE::CIMObjectPath::syncWithClass(), and OW_NAMESPACE::CIMInstance::syncWithClass().

CIMQualifier CIMClass::getQualifier const CIMName name  )  const
 

Get a named qualifier from this class.

Parameters:
name The name of the qualifer to retreive
Returns:
The CIMQualifier associated with the given name if found. Otherwise a NULL CIMQualifier.

Definition at line 164 of file OW_CIMClass.cpp.

References i, and name.

Referenced by OW_NAMESPACE::InstanceRepository2::_removeDuplicatedQualifiers(), and OW_NAMESPACE::InstanceRepository::_removeDuplicatedQualifiers().

CIMQualifierArray CIMClass::getQualifiers  )  const
 

Returns:
The qualifiers associated with the CIMClass object.

Definition at line 271 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MetaRepository::adjustClass(), and OW_NAMESPACE::MetaRepository::createClass().

String CIMClass::getSuperClass  )  const
 

In the future, this function will be changed to return a CIMName.

Returns:
The name of the parent CIM class of this CIMClass object.

Definition at line 123 of file OW_CIMClass.cpp.

References OW_NAMESPACE::String::toString().

Referenced by OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository::_staticAssociatorsClass(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::MetaRepository::adjustClass(), OW_NAMESPACE::WQLProcessor::classIsDerivedFrom(), OW_NAMESPACE::WQLInstancePropertySource::classIsDerivedFrom(), and OW_NAMESPACE::WQLProcessor::visit_aExpr_aExpr_EQUALS_aExpr().

bool CIMClass::hasQualifier const CIMQualifier qual  )  const
 

Check for the existence of a qualifier in this class.

Parameters:
qual The CIMQualifier to check the existence of.
Returns:
true if this class has the qualifer. Otherwise false.

Definition at line 429 of file OW_CIMClass.cpp.

References i.

bool CIMClass::isAssociation  )  const
 

Returns:
true if this CIMClass is an association.

Definition at line 258 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MetaRepository::createClass(), OW_NAMESPACE::CIMRepository2::createClass(), OW_NAMESPACE::CIMRepository::createInstance(), OW_NAMESPACE::CIMRepository::deleteInstance(), and OW_NAMESPACE::CIMRepository::modifyInstance().

bool CIMClass::isKeyed  )  const
 

Returns:
true if this CIMClass object has key properties.

Definition at line 136 of file OW_CIMClass.cpp.

CIMInstance CIMClass::newInstance  )  const
 

Create a new instance of this CIM Class.

Properties on the instance will be set to the default values specified in this class.

Returns:
A new CIMInstance of this class appropriately initialized.

Definition at line 553 of file OW_CIMClass.cpp.

References OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::CIMInstance::setClassName(), and OW_NAMESPACE::CIMInstance::syncWithClass().

Referenced by OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::doReferences(), OW_NAMESPACE::OpenWBEM_UnitaryComputerSystem::doSimpleEnumInstances(), OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv::getInstance(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::getInstance(), OW_NAMESPACE::WQLProcessor::visit_insertRest_VALUES_LEFTPAREN_targetList_RIGHTPAREN(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitInstanceDeclaration().

int CIMClass::numberOfProperties  )  const
 

Returns:
The number of properties for this class.

Definition at line 348 of file OW_CIMClass.cpp.

int CIMClass::numberOfQualifiers  )  const
 

Returns:
The number of the qualifiers for this class.

Definition at line 445 of file OW_CIMClass.cpp.

OW_NAMESPACE::CIMClass::operator safe_bool  )  const [inline]
 

Returns:
true if this CIMClass in not a NULL object.

Definition at line 409 of file OW_CIMClass.hpp.

References m_pdata.

bool OW_NAMESPACE::CIMClass::operator!  )  const [inline]
 

Definition at line 413 of file OW_CIMClass.hpp.

CIMClass & CIMClass::operator= const CIMClass x  ) 
 

Definition at line 798 of file OW_CIMClass.cpp.

References m_pdata.

virtual void OW_NAMESPACE::CIMClass::readObject std::istream &  istrm  )  [virtual]
 

Read this CIMClass object from an input stream.

Parameters:
istrm The input stream to read this CIMClass from.

Implements OW_NAMESPACE::SerializableIFC.

bool CIMClass::removeProperty const CIMName name  ) 
 

Remove a property from this class.

Parameters:
name The name of the property to remove from this class.
Returns:
true if the property was removed. Otherwise false.

Definition at line 488 of file OW_CIMClass.cpp.

References i, and name.

bool CIMClass::removeQualifier const CIMName name  ) 
 

Remove a qualifier from this class.

Parameters:
name The name of the qualifier to remove from this class.
Returns:
true if the qualifier was removed. Otherwise false.

Definition at line 471 of file OW_CIMClass.cpp.

References i, and name.

bool CIMClass::removeQualifier const CIMQualifier qual  ) 
 

Remove a qualifier from this class.

Parameters:
qual The qualifier to remove from this class.
Returns:
true if the qualifier was removed. Otherwise false.

Definition at line 451 of file OW_CIMClass.cpp.

References i.

CIMClass & CIMClass::setIsAssociation bool  isAssocFlag  ) 
 

Set the flag that indicates this CIMClass is an association.

Parameters:
isKeyedParm If true this class will be flagged as an association.
Returns:
a reference to *this

Definition at line 264 of file OW_CIMClass.cpp.

CIMClass & CIMClass::setIsKeyed bool  isKeyedParm = true  ) 
 

Set the flag that indicates this CIMClass has keys.

Parameters:
isKeyedParm If true this class is flagged as having keys.
Returns:
a reference to *this

Definition at line 142 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MetaRepository::_resolveClass().

CIMClass & CIMClass::setMethod const CIMMethod meth  ) 
 

Update/add a method on this CIMClass object.

Parameters:
meth The method to add/update on this class.
Returns:
a reference to *this

Definition at line 377 of file OW_CIMClass.cpp.

References OW_NAMESPACE::CIMMethod::getName(), and i.

CIMClass & CIMClass::setMethods const CIMMethodArray meths  ) 
 

Set the methods for this class.

The old methods will be removed.

Parameters:
meths An CIMMethodArray containing the new methods for this class.
Returns:
a reference to *this

Definition at line 546 of file OW_CIMClass.cpp.

void CIMClass::setName const CIMName name  )  [virtual]
 

Set the name associated with this CIMClass object.

Parameters:
name The new name for this CIMClass object.

Implements OW_NAMESPACE::CIMElement.

Definition at line 117 of file OW_CIMClass.cpp.

References name.

void CIMClass::setNull  )  [virtual]
 

Set this to a null object.

All subsequent oprations on this object will fail.

Implements OW_NAMESPACE::CIMBase.

Definition at line 805 of file OW_CIMClass.cpp.

CIMClass & CIMClass::setProperties const CIMPropertyArray props  ) 
 

Set the properties for this class.

All of the old properties are removed.

Parameters:
props An CIMPropertyArray containing the new properties for this CIMClass object.
Returns:
a reference to *this

Definition at line 354 of file OW_CIMClass.cpp.

CIMClass & CIMClass::setProperty const CIMProperty prop  ) 
 

Update a property on this CIMClass if it exists.

If it doesn't exist, this add it.

Parameters:
prop The property to update/add on this class.
Returns:
a reference to *this

Definition at line 361 of file OW_CIMClass.cpp.

References OW_NAMESPACE::CIMProperty::getName(), and i.

CIMClass & CIMClass::setQualifier const CIMQualifier qual  ) 
 

Set the given qualifier on this CIMClass if it is present.

If it is not, then add it.

Parameters:
qual The qualifier to set or add to this CIMClass.
Returns:
a reference to *this

Definition at line 512 of file OW_CIMClass.cpp.

References i.

CIMClass & CIMClass::setQualifiers const CIMQualifierArray quals  ) 
 

Set the qualifiers for this class.

The old qualifiers will be removed.

Parameters:
quals An CIMQualifierArray that contains the new qualifiers.
Returns:
a reference to *this

Definition at line 505 of file OW_CIMClass.cpp.

Referenced by OW_NAMESPACE::MetaRepository::createClass().

CIMClass & CIMClass::setSuperClass const CIMName pname  ) 
 

Set the name of the parent CIM class for this CIMClass object.

Parameters:
pname The name of the parent CIM class for this object.
Returns:
a reference to *this

Definition at line 129 of file OW_CIMClass.cpp.

String CIMClass::toMOF  )  const [virtual]
 

Returns:
The MOF representation of this CIMClass object as an String object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 708 of file OW_CIMClass.cpp.

References OW_NAMESPACE::Array< T >::begin(), OW_NAMESPACE::Array< T >::end(), OW_NAMESPACE::Array< T >::erase(), i, and OW_NAMESPACE::Array< T >::insert().

Referenced by OW_NAMESPACE::CIMRepository2::modifyClass(), and OW_NAMESPACE::CIMRepository::modifyClass().

String CIMClass::toString  )  const [virtual]
 

Returns:
The string representation of this CIMClass. This yields the same results as toMOF.

Reimplemented from OW_NAMESPACE::CIMElement.

Definition at line 783 of file OW_CIMClass.cpp.

virtual void OW_NAMESPACE::CIMClass::writeObject std::ostream &  ostrm  )  const [virtual]
 

Write this CIMClass object to an output stream.

Parameters:
ostrm The output stream to write this CIMClass to.

Implements OW_NAMESPACE::SerializableIFC.


Friends And Related Function Documentation

OW_COMMON_API bool operator< const CIMClass x,
const CIMClass y
[friend]
 

Definition at line 816 of file OW_CIMClass.cpp.

OW_COMMON_API bool operator== const CIMClass x,
const CIMClass y
[friend]
 

Definition at line 822 of file OW_CIMClass.cpp.


Member Data Documentation

COWIntrusiveReference<CLSData> OW_NAMESPACE::CIMClass::m_pdata [private]
 

Definition at line 424 of file OW_CIMClass.hpp.

Referenced by CIMClass(), clone(), operator safe_bool(), OW_NAMESPACE::operator<(), operator=(), and OW_NAMESPACE::operator==().

const char* const NAMESPACECLASS OW_NAMESPACE::CIMClass::OW_DEPRECATED [static]
 

Name of the internal namespace class.

Definition at line 61 of file OW_CIMClass.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:12:22 2006 for openwbem by  doxygen 1.4.6