#include <OW_CIMProperty.hpp>
Inheritance diagram for OW_NAMESPACE::CIMProperty:
Public Types | |
typedef COWIntrusiveReference< PROPData > CIMProperty::* | safe_bool |
Public Member Functions | |
CIMProperty () | |
Create a new CIMProperty object. | |
CIMProperty (CIMNULL_t) | |
Create a NULL CIMProperty object. | |
CIMProperty (const CIMName &name) | |
Create an CIMProperty object with a given name. | |
CIMProperty (const char *name) | |
Create an CIMProperty object with a given name. | |
CIMProperty (const CIMName &name, const CIMValue &value) | |
Create an CIMProperty object with a name and a value. | |
CIMProperty (const CIMName &name, const CIMDataType &dt) | |
Create an CIMProperty object with a name and a type. | |
CIMProperty (const CIMProperty &arg) | |
Copy constructor. | |
~CIMProperty () | |
Destroy this CIMProperty object. | |
virtual void | setNull () |
Set this to a null object. | |
CIMProperty & | operator= (const CIMProperty &arg) |
Assignment operator. | |
operator safe_bool () const | |
bool | operator! () const |
CIMProperty | clone () const |
CIMProperty | clone (WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin) const |
Create a copy of this CIMProperty object base on filtering criteria. | |
CIMQualifierArray | getQualifiers () const |
Get the qualifiers for this property. | |
CIMProperty & | setQualifiers (const CIMQualifierArray &quals) |
Set the qualifiers for this property object. | |
String | getOriginClass () const |
Get the origin class for this property. | |
CIMProperty & | setOriginClass (const CIMName &originCls) |
Set the origin class for this property. | |
CIMProperty & | setValue (const CIMValue &val) |
Set the value of this property. | |
CIMValue | getValue () const |
CIMValue | getValueT () const |
CIMProperty & | setDataType (const CIMDataType &type) |
Set the data type for this property. | |
CIMProperty & | setDataType (const CIMDataType::Type &type) |
Set the data type for this property. | |
CIMDataType | getDataType () const |
Int32 | getSize () const |
CIMProperty & | setDataSize (Int32 size) |
Set the size of the data for this property. | |
CIMProperty & | setOverridingProperty (const CIMName &opname) |
Set the overriding property name. | |
String | getOverridingProperty () const |
bool | isReference () const |
CIMQualifier | getQualifier (const CIMName &name) const |
Get the qualifier associated with the given name from this property. | |
CIMQualifier | getQualifierT (const CIMName &name) const |
Get the qualifier associated with the given name from this property. | |
CIMProperty & | setQualifier (const CIMQualifier &qual) |
Set the value of a qaulifier on this property. | |
CIMProperty & | addQualifier (const CIMQualifier &qual) |
Add a qualifier to this property. | |
bool | removeQualifier (const CIMName &name) |
Remove a qualifier from this property. | |
bool | isKey () const |
CIMProperty | filter (WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers) const |
Create a filtered version of this property. | |
CIMProperty & | setPropagated (bool propagated=true) |
Set the propagated flag on this property. | |
bool | getPropagated () const |
Get the propagated flag for this property. | |
CIMProperty & | clearQualifiers () |
Clear all qualifiers from this property. | |
CIMProperty & | clearNonKeyQualifiers () |
Clear all qualifiers except for the Key qualifier from this property. | |
virtual String | getName () const |
virtual void | setName (const CIMName &name) |
Set the name of this CIMProperty object. | |
virtual void | writeObject (std::ostream &ostrm) const |
Write this CIMProperty to the given output stream. | |
virtual void | writeObject (std::ostream &ostrm, WBEMFlags::EIncludeQualifiersFlag includeQualifiers) const |
Write this CIMProperty, optionally omitting all qualifiers except the key qualifier. | |
virtual void | readObject (std::istream &istrm) |
Read this CIIMProperty object from the given input stream. | |
virtual String | toString () const |
virtual String | toMOF () const |
bool | hasTrueQualifier (const CIMName &name) const |
Test if this property has a qualifier that is a boolean type with a value of true. | |
Static Public Attributes | |
static const char *const | NAME_PROPERTY = "Name" |
Private Attributes | |
COWIntrusiveReference< PROPData > | m_pdata |
Friends | |
OW_COMMON_API bool | operator< (const CIMProperty &x, const CIMProperty &y) |
Classes | |
struct | PROPData |
Definition at line 54 of file OW_CIMProperty.hpp.
|
Definition at line 110 of file OW_CIMProperty.hpp. |
|
Create a new CIMProperty object.
Definition at line 96 of file OW_CIMProperty.cpp. Referenced by filter(). |
|
Create a NULL CIMProperty object.
Definition at line 101 of file OW_CIMProperty.cpp. |
|
Create an CIMProperty object with a given name.
Definition at line 106 of file OW_CIMProperty.cpp. |
|
Create an CIMProperty object with a given name.
Definition at line 112 of file OW_CIMProperty.cpp. References m_pdata. |
|
Create an CIMProperty object with a name and a value.
Definition at line 118 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMValue::getCIMDataType(), m_pdata, and name. |
|
Create an CIMProperty object with a name and a type.
Definition at line 127 of file OW_CIMProperty.cpp. |
|
Copy constructor.
Definition at line 135 of file OW_CIMProperty.cpp. |
|
Destroy this CIMProperty object.
Definition at line 140 of file OW_CIMProperty.cpp. |
|
Add a qualifier to this property.
Definition at line 366 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMException::ALREADY_EXISTS, OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMQualifier::getName(), i, m_pdata, and OW_THROWCIMMSG. Referenced by OW_NAMESPACE::CIMServer::_getNameSpaceClass(), clearNonKeyQualifiers(), OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::BinaryRequestHandler::createInstance(), OW_NAMESPACE::MOF::CIMOMVisitor::VisitPropertyDeclaration(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitReferenceDeclaration(). |
|
Clear all qualifiers except for the Key qualifier from this property.
Definition at line 471 of file OW_CIMProperty.cpp. References addQualifier(), OW_NAMESPACE::CIMQualifier::CIM_QUAL_KEY, getQualifier(), and m_pdata. |
|
Clear all qualifiers from this property.
Definition at line 464 of file OW_CIMProperty.cpp. References m_pdata. |
|
Create a copy of this CIMProperty object base on filtering criteria.
Definition at line 158 of file OW_CIMProperty.cpp. References OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::CIMDataType::EMBEDDEDINSTANCE, i, and m_pdata. |
|
Definition at line 121 of file OW_CIMProperty.hpp. References OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, and OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS. |
|
Create a filtered version of this property.
Definition at line 413 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMNULL, CIMProperty(), and m_pdata. |
|
Definition at line 283 of file OW_CIMProperty.cpp. References m_pdata. Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), isKey(), and OW_NAMESPACE::outputKEYVALUE(). |
|
Implements OW_NAMESPACE::CIMElement. Definition at line 452 of file OW_CIMProperty.cpp. References m_pdata. Referenced by OW_NAMESPACE::UtilKeyArray::addElement(), OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), OW_NAMESPACE::CIMtoXML(), OW_NAMESPACE::CIMInstance::setProperty(), OW_NAMESPACE::CIMClass::setProperty(), and OW_NAMESPACE::CIMInstance::updatePropertyValue(). |
|
Get the origin class for this property.
Definition at line 212 of file OW_CIMProperty.cpp. References m_pdata. Referenced by OW_NAMESPACE::CIMInstance::clone(). |
|
Definition at line 309 of file OW_CIMProperty.cpp. References m_pdata. |
|
Get the propagated flag for this property.
Definition at line 446 of file OW_CIMProperty.cpp. References m_pdata. |
|
Get the qualifier associated with the given name from this property.
Definition at line 321 of file OW_CIMProperty.cpp. References i, m_pdata, and name. Referenced by clearNonKeyQualifiers(), getQualifierT(), and hasTrueQualifier(). |
|
Get the qualifiers for this property.
Definition at line 199 of file OW_CIMProperty.cpp. References m_pdata. Referenced by OW_NAMESPACE::CIMInstance::createModifiedInstance(). |
|
Get the qualifier associated with the given name from this property.
Definition at line 336 of file OW_CIMProperty.cpp. References OW_NAMESPACE::String::c_str(), getQualifier(), name, OW_THROW, and OW_NAMESPACE::String::toString(). |
|
Definition at line 289 of file OW_CIMProperty.cpp. References m_pdata. |
|
|
Definition at line 246 of file OW_CIMProperty.cpp. References m_pdata, and OW_THROW. Referenced by OW_NAMESPACE::CIM_NamespaceInstProv::createInstance(), OW_NAMESPACE::IndicationServerImplThread::createSubscription(), OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::getInstance(), and OW_NAMESPACE::getSourceNameSpace(). |
|
Test if this property has a qualifier that is a boolean type with a value of true.
Definition at line 615 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMDataType::BOOLEAN, getQualifier(), OW_NAMESPACE::CIMValue::getType(), OW_NAMESPACE::CIMQualifier::getValue(), and name. Referenced by isKey(). |
|
Definition at line 401 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMQualifier::CIM_QUAL_KEY, getDataType(), and hasTrueQualifier(). Referenced by OW_NAMESPACE::BinaryRequestHandler::createInstance(), OW_NAMESPACE::CIMInstance::setProperty(), and OW_NAMESPACE::CIMInstance::updatePropertyValue(). |
|
Definition at line 315 of file OW_CIMProperty.cpp. References m_pdata. |
|
Definition at line 114 of file OW_CIMProperty.hpp. References m_pdata. |
|
Definition at line 116 of file OW_CIMProperty.hpp. |
|
Assignment operator.
Definition at line 151 of file OW_CIMProperty.cpp. References m_pdata. |
|
Read this CIIMProperty object from the given input stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Remove a qualifier from this property.
Definition at line 385 of file OW_CIMProperty.cpp. |
|
Set the size of the data for this property.
Definition at line 295 of file OW_CIMProperty.cpp. References m_pdata. |
|
Set the data type for this property.
Definition at line 277 of file OW_CIMProperty.cpp. References setDataType(). |
|
Set the data type for this property.
Definition at line 256 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMDataType::EMBEDDEDCLASS, OW_NAMESPACE::CIMDataType::EMBEDDEDINSTANCE, m_pdata, and type. Referenced by OW_NAMESPACE::CIMServer::_getNameSpaceClass(), OW_NAMESPACE::CIMObjectPath::addKey(), OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::XMLCIMFactory::createProperty(), OW_NAMESPACE::CIMNameSpaceUtils::delete__Namespace(), and setDataType(). |
|
Set the name of this CIMProperty object.
Implements OW_NAMESPACE::CIMElement. Definition at line 458 of file OW_CIMProperty.cpp. |
|
Set this to a null object.
Implements OW_NAMESPACE::CIMBase. Definition at line 145 of file OW_CIMProperty.cpp. References m_pdata. |
|
Set the origin class for this property.
Definition at line 218 of file OW_CIMProperty.cpp. References m_pdata. |
|
Set the overriding property name.
Definition at line 302 of file OW_CIMProperty.cpp. References m_pdata. |
|
Set the propagated flag on this property.
Definition at line 439 of file OW_CIMProperty.cpp. References m_pdata. |
|
Set the value of a qaulifier on this property.
Definition at line 347 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMQualifier::getName(), i, and m_pdata. Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitValueInitializer(). |
|
Set the qualifiers for this property object.
Definition at line 205 of file OW_CIMProperty.cpp. References m_pdata. Referenced by OW_NAMESPACE::CIMInstance::createModifiedInstance(). |
|
Set the value of this property.
Definition at line 225 of file OW_CIMProperty.cpp. References OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMDataType::EMBEDDEDCLASS, OW_NAMESPACE::CIMDataType::EMBEDDEDINSTANCE, m_pdata, and val. |
|
Implements OW_NAMESPACE::CIMBase. Definition at line 573 of file OW_CIMProperty.cpp. |
|
Reimplemented from OW_NAMESPACE::CIMElement. Definition at line 557 of file OW_CIMProperty.cpp. References m_pdata, and OW_NAMESPACE::StringBuffer::releaseString(). |
|
Write this CIMProperty, optionally omitting all qualifiers except the key qualifier.
|
|
Write this CIMProperty to the given output stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Definition at line 609 of file OW_CIMProperty.cpp. |
|
|
Definition at line 57 of file OW_CIMProperty.hpp. Referenced by OW_NAMESPACE::CIMServer::_getNameSpaceClass(), OW_NAMESPACE::NameSpaceProvider::createInstance(), OW_NAMESPACE::BinaryRequestHandler::createInstance(), and OW_NAMESPACE::NameSpaceProvider::getInstance(). |