#include <OWBI1_CIMClass.hpp>
Inheritance diagram for OWBI1::CIMClass:
Public Types | |
typedef detail::CIMClassRepRef 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 (const detail::CIMClassRepRef &rep) | |
~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. | |
CIMName | getSuperClass () const |
In the future, this function will be changed to return a CIMName. | |
CIMName | 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. | |
virtual CIMName | 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 |
detail::CIMClassRepRef | getRep () const |
Private Attributes | |
detail::CIMClassRepRef | m_rep |
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 57 of file OWBI1_CIMClass.hpp.
|
Definition at line 343 of file OWBI1_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 65 of file OWBI1_CIMClass.hpp. |
|
Create a new CIMClass object.
Definition at line 95 of file OWBI1_CIMClass.cpp. |
|
Create a new NULL CIMClass object. Do not call any methods on it or your app may crash. Definition at line 100 of file OWBI1_CIMClass.cpp. |
|
Create an CIMClass object with the given name.
Definition at line 111 of file OWBI1_CIMClass.cpp. References name. |
|
Create an CIMClass object with the given name.
Definition at line 105 of file OWBI1_CIMClass.cpp. |
|
Definition at line 712 of file OWBI1_CIMClass.cpp. |
|
Definition at line 118 of file OWBI1_CIMClass.cpp. |
|
Destroy this CIMClass object and decrement the refcount on the underlying data.
Definition at line 708 of file OWBI1_CIMClass.cpp. |
|
Add a method to this class.
Definition at line 544 of file OWBI1_CIMClass.cpp. |
|
Add a property to this class.
Definition at line 342 of file OWBI1_CIMClass.cpp. |
|
Add a qualifier to this class.
Definition at line 401 of file OWBI1_CIMClass.cpp. References i. |
|
Definition at line 320 of file OWBI1_CIMClass.cpp. |
|
Definition at line 285 of file OWBI1_CIMClass.cpp. Referenced by OWBI1::CIMInstance::syncWithClass(). |
|
In the future, this function will be changed to return a CIMName.
Definition at line 291 of file OWBI1_CIMClass.cpp. References i. |
|
Definition at line 157 of file OWBI1_CIMClass.cpp. References OWBI1::Array< T >::append(), and i. Referenced by OWBI1::CIMObjectPath::syncWithClass(). |
|
Get the method associated with the given name from this CIMClass considering the given origin class in the process.
Definition at line 231 of file OWBI1_CIMClass.cpp. |
|
Get the method associated with the given name.
Definition at line 225 of file OWBI1_CIMClass.cpp. References name. |
|
Definition at line 326 of file OWBI1_CIMClass.cpp. References OWBI1::Array< T >::append(), and i. |
|
In the future, this function will be changed to return a CIMName.
Implements OWBI1::CIMElement. Definition at line 731 of file OWBI1_CIMClass.cpp. |
|
Definition at line 305 of file OWBI1_CIMClass.cpp. References OWBI1::Array< T >::append(), and i. |
|
Get a named property from this CIMClass.
Definition at line 192 of file OWBI1_CIMClass.cpp. |
|
Get a named property from this class.
Definition at line 186 of file OWBI1_CIMClass.cpp. Referenced by OWBI1::CIMInstance::createModifiedInstance(), OWBI1::CIMObjectPath::syncWithClass(), and OWBI1::CIMInstance::syncWithClass(). |
|
Get a named qualifier from this class.
Definition at line 172 of file OWBI1_CIMClass.cpp. |
|
Definition at line 279 of file OWBI1_CIMClass.cpp. |
|
Definition at line 781 of file OWBI1_CIMClass.cpp. |
|
In the future, this function will be changed to return a CIMName.
Definition at line 131 of file OWBI1_CIMClass.cpp. |
|
Check for the existence of a qualifier in this class.
Definition at line 437 of file OWBI1_CIMClass.cpp. References i. |
|
Definition at line 266 of file OWBI1_CIMClass.cpp. |
|
Definition at line 144 of file OWBI1_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 561 of file OWBI1_CIMClass.cpp. References OWBI1::CIMInstance::setClassName(), and OWBI1::CIMInstance::syncWithClass(). |
|
Definition at line 356 of file OWBI1_CIMClass.cpp. |
|
Definition at line 453 of file OWBI1_CIMClass.cpp. |
|
|
|
|
|
Definition at line 718 of file OWBI1_CIMClass.cpp. |
|
Read this CIMClass object from an input stream.
Implements OWBI1::SerializableIFC. |
|
Remove a property from this class.
Definition at line 496 of file OWBI1_CIMClass.cpp. |
|
Remove a qualifier from this class.
Definition at line 479 of file OWBI1_CIMClass.cpp. |
|
Remove a qualifier from this class.
Definition at line 459 of file OWBI1_CIMClass.cpp. References i. |
|
Set the flag that indicates this CIMClass is an association.
Definition at line 272 of file OWBI1_CIMClass.cpp. |
|
Set the flag that indicates this CIMClass has keys.
Definition at line 150 of file OWBI1_CIMClass.cpp. |
|
Update/add a method on this CIMClass object.
Definition at line 385 of file OWBI1_CIMClass.cpp. References OWBI1::CIMMethod::getName(), and i. |
|
Set the methods for this class. The old methods will be removed.
Definition at line 554 of file OWBI1_CIMClass.cpp. |
|
Set the name associated with this CIMClass object.
Implements OWBI1::CIMElement. Definition at line 125 of file OWBI1_CIMClass.cpp. References name. |
|
Set this to a null object. All subsequent oprations on this object will fail. Implements OWBI1::CIMBase. Definition at line 725 of file OWBI1_CIMClass.cpp. |
|
Set the properties for this class. All of the old properties are removed.
Definition at line 362 of file OWBI1_CIMClass.cpp. |
|
Update a property on this CIMClass if it exists. If it doesn't exist, this add it.
Definition at line 369 of file OWBI1_CIMClass.cpp. References OWBI1::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 520 of file OWBI1_CIMClass.cpp. References i. |
|
Set the qualifiers for this class. The old qualifiers will be removed.
Definition at line 513 of file OWBI1_CIMClass.cpp. |
|
Set the name of the parent CIM class for this CIMClass object.
Definition at line 137 of file OWBI1_CIMClass.cpp. |
|
Implements OWBI1::CIMBase. Definition at line 628 of file OWBI1_CIMClass.cpp. References OWBI1::Array< T >::begin(), OWBI1::Array< T >::end(), OWBI1::Array< T >::erase(), i, and OWBI1::Array< T >::insert(). |
|
Implements OWBI1::CIMElement. Definition at line 703 of file OWBI1_CIMClass.cpp. |
|
Write this CIMClass object to an output stream.
Implements OWBI1::SerializableIFC. |
|
Definition at line 360 of file OWBI1_CIMClass.hpp. |