#include <OW_CIMClass.hpp>
Inheritance diagram for OW_NAMESPACE::CIMClass:
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. | |
CIMClass & | operator= (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. | |
CIMClass & | setSuperClass (const CIMName &pname) |
Set the name of the parent CIM class for this CIMClass object. | |
bool | isKeyed () const |
CIMClass & | setIsAssociation (bool isAssocFlag) |
Set the flag that indicates this CIMClass is an association. | |
CIMClass & | setIsKeyed (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 |
CIMClass & | addProperty (const CIMProperty &prop) |
Add a property to this class. | |
int | numberOfProperties () const |
CIMClass & | setProperties (const CIMPropertyArray &props) |
Set the properties for this class. | |
CIMClass & | setProperty (const CIMProperty &prop) |
Update a property on this CIMClass if it exists. | |
CIMClass & | addQualifier (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. | |
CIMClass & | setQualifiers (const CIMQualifierArray &quals) |
Set the qualifiers for this class. | |
CIMClass & | setQualifier (const CIMQualifier &qual) |
Set the given qualifier on this CIMClass if it is present. | |
CIMClass & | addMethod (const CIMMethod &meth) |
Add a method to this class. | |
CIMClass & | setMethods (const CIMMethodArray &meths) |
Set the methods for this class. | |
CIMClass & | setMethod (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< CLSData > | m_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 |
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.
|
Definition at line 405 of file OW_CIMClass.hpp. |
|
Binary serialization version. Version 1 had a language. Since a class doesn't actually have a language it was removed for version 2 Definition at line 70 of file OW_CIMClass.hpp. |
|
Create a new CIMClass object.
Definition at line 94 of file OW_CIMClass.cpp. |
|
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. |
|
Create an CIMClass object with the given name.
Definition at line 110 of file OW_CIMClass.cpp. |
|
Create an CIMClass object with the given name.
Definition at line 104 of file OW_CIMClass.cpp. References m_pdata. |
|
Definition at line 792 of file OW_CIMClass.cpp. |
|
Destroy this CIMClass object and decrement the refcount on the underlying data.
Definition at line 788 of file OW_CIMClass.cpp. |
|
Add a method to this class.
Definition at line 536 of file OW_CIMClass.cpp. Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitClassFeatureMethodDeclaration(). |
|
Add a property to this class.
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(). |
|
Add a qualifier to this class.
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(). |
|
Create an CIMClass based on this object, using the specified criteria.
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(). |
|
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.
Definition at line 562 of file OW_CIMClass.cpp. References OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, and propertyList. |
|
Definition at line 312 of file OW_CIMClass.cpp. |
|
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(). |
|
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.
Definition at line 906 of file OW_CIMClass.cpp. References propertyList, and OW_NAMESPACE::Array< T >::size(). |
|
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.
Definition at line 855 of file OW_CIMClass.cpp. References propertyList, and OW_NAMESPACE::Array< T >::size(). |
|
In the future, this function will be changed to return a CIMName.
Definition at line 283 of file OW_CIMClass.cpp. References i. |
|
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(). |
|
Get the method associated with the given name from this CIMClass considering the given origin class in the process.
Definition at line 223 of file OW_CIMClass.cpp. |
|
Get the method associated with the given name.
Definition at line 217 of file OW_CIMClass.cpp. References name. |
|
Definition at line 318 of file OW_CIMClass.cpp. References OW_NAMESPACE::Array< T >::append(), and i. |
|
|
Definition at line 297 of file OW_CIMClass.cpp. References OW_NAMESPACE::Array< T >::append(), and i. |
|
Get a named property from this CIMClass.
Definition at line 184 of file OW_CIMClass.cpp. |
|
Get a named property from this class.
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(). |
|
Get a named qualifier from this class.
Definition at line 164 of file OW_CIMClass.cpp. Referenced by OW_NAMESPACE::InstanceRepository2::_removeDuplicatedQualifiers(), and OW_NAMESPACE::InstanceRepository::_removeDuplicatedQualifiers(). |
|
Definition at line 271 of file OW_CIMClass.cpp. Referenced by OW_NAMESPACE::MetaRepository::adjustClass(), and OW_NAMESPACE::MetaRepository::createClass(). |
|
In the future, this function will be changed to return a CIMName.
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(). |
|
Check for the existence of a qualifier in this class.
Definition at line 429 of file OW_CIMClass.cpp. References i. |
|
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(). |
|
Definition at line 136 of file OW_CIMClass.cpp. |
|
Create a new instance of this CIM Class. Properties on the instance will be set to the default values specified in this class.
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(). |
|
Definition at line 348 of file OW_CIMClass.cpp. |
|
Definition at line 445 of file OW_CIMClass.cpp. |
|
Definition at line 409 of file OW_CIMClass.hpp. References m_pdata. |
|
Definition at line 413 of file OW_CIMClass.hpp. |
|
Definition at line 798 of file OW_CIMClass.cpp. References m_pdata. |
|
Read this CIMClass object from an input stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Remove a property from this class.
Definition at line 488 of file OW_CIMClass.cpp. |
|
Remove a qualifier from this class.
Definition at line 471 of file OW_CIMClass.cpp. |
|
Remove a qualifier from this class.
Definition at line 451 of file OW_CIMClass.cpp. References i. |
|
Set the flag that indicates this CIMClass is an association.
Definition at line 264 of file OW_CIMClass.cpp. |
|
Set the flag that indicates this CIMClass has keys.
Definition at line 142 of file OW_CIMClass.cpp. Referenced by OW_NAMESPACE::MetaRepository::_resolveClass(). |
|
Update/add a method on this CIMClass object.
Definition at line 377 of file OW_CIMClass.cpp. References OW_NAMESPACE::CIMMethod::getName(), and i. |
|
Set the methods for this class. The old methods will be removed.
Definition at line 546 of file OW_CIMClass.cpp. |
|
Set the name associated with this CIMClass object.
Implements OW_NAMESPACE::CIMElement. Definition at line 117 of file OW_CIMClass.cpp. References name. |
|
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. |
|
Set the properties for this class. All of the old properties are removed.
Definition at line 354 of file OW_CIMClass.cpp. |
|
Update a property on this CIMClass if it exists. If it doesn't exist, this add it.
Definition at line 361 of file OW_CIMClass.cpp. References OW_NAMESPACE::CIMProperty::getName(), and i. |
|
Set the given qualifier on this CIMClass if it is present. If it is not, then add it.
Definition at line 512 of file OW_CIMClass.cpp. References i. |
|
Set the qualifiers for this class. The old qualifiers will be removed.
Definition at line 505 of file OW_CIMClass.cpp. Referenced by OW_NAMESPACE::MetaRepository::createClass(). |
|
Set the name of the parent CIM class for this CIMClass object.
Definition at line 129 of file OW_CIMClass.cpp. |
|
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(). |
|
Reimplemented from OW_NAMESPACE::CIMElement. Definition at line 783 of file OW_CIMClass.cpp. |
|
Write this CIMClass object to an output stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Definition at line 816 of file OW_CIMClass.cpp. |
|
Definition at line 822 of file OW_CIMClass.cpp. |
|
Definition at line 424 of file OW_CIMClass.hpp. Referenced by CIMClass(), clone(), operator safe_bool(), OW_NAMESPACE::operator<(), operator=(), and OW_NAMESPACE::operator==(). |
|
Name of the internal namespace class.
Definition at line 61 of file OW_CIMClass.hpp. |