OW_NAMESPACE::WQLInstancePropertySource Class Reference

#include <OW_WQLInstancePropertySource.hpp>

Inheritance diagram for OW_NAMESPACE::WQLInstancePropertySource:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WQLInstancePropertySource (const CIMInstance &ci_, const CIMOMHandleIFCRef &hdl, const String &ns)
 ~WQLInstancePropertySource ()
virtual bool evaluateISA (const String &propertyName, const String &className) const
 Returns true if the property identified by propertyName is an EmbeddedObject instance or class that is either className or is derived from className.
virtual bool getValue (const String &propertyName, WQLOperand &value) const
 Returns the value whose property has the given name.

Private Member Functions

bool evaluateISAAux (const CIMInstance &ci, StringArray propNames, const String &className) const
bool classIsDerivedFrom (const String &cls, const String &className) const

Static Private Member Functions

static bool getValueAux (const CIMInstance &ci, const StringArray &propNames, WQLOperand &value)

Private Attributes

CIMInstance ci
CIMOMHandleIFCRef m_hdl
String m_ns

Detailed Description

Definition at line 46 of file OW_WQLInstancePropertySource.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::WQLInstancePropertySource::WQLInstancePropertySource const CIMInstance ci_,
const CIMOMHandleIFCRef hdl,
const String ns
[inline]
 

Definition at line 49 of file OW_WQLInstancePropertySource.hpp.

OW_NAMESPACE::WQLInstancePropertySource::~WQLInstancePropertySource  ) 
 

Definition at line 47 of file OW_WQLInstancePropertySource.cpp.


Member Function Documentation

bool OW_NAMESPACE::WQLInstancePropertySource::classIsDerivedFrom const String cls,
const String className
const [private]
 

Definition at line 109 of file OW_WQLInstancePropertySource.cpp.

References className, OW_NAMESPACE::CIMClass::getSuperClass(), m_hdl, m_ns, and OW_NAMESPACE::CIMName::toString().

Referenced by evaluateISAAux().

bool OW_NAMESPACE::WQLInstancePropertySource::evaluateISA const String propertyName,
const String className
const [virtual]
 

Returns true if the property identified by propertyName is an EmbeddedObject instance or class that is either className or is derived from className.

Parameters:
propertyName name of property to be gotten. This can be of the form: name(.subname)* examples: propertyName className.propertyName propertyName.embeddedPropertyName1 propertyName.embeddedPropertyName1.embeddedPropertyName2 className.propertyName.embeddedPropertyName1
className The name of the class against which the property is to be checked.
Returns:
true or false

Implements OW_NAMESPACE::WQLPropertySource.

Definition at line 51 of file OW_WQLInstancePropertySource.cpp.

References OW_NAMESPACE::Array< T >::empty(), and OW_NAMESPACE::String::tokenize().

bool OW_NAMESPACE::WQLInstancePropertySource::evaluateISAAux const CIMInstance ci,
StringArray  propNames,
const String className
const [private]
 

Definition at line 79 of file OW_WQLInstancePropertySource.cpp.

References ci, classIsDerivedFrom(), className, OW_NAMESPACE::Array< T >::empty(), and OW_NAMESPACE::CIMInstance::getClassName().

bool OW_NAMESPACE::WQLInstancePropertySource::getValue const String propertyName,
WQLOperand value
const [virtual]
 

Returns the value whose property has the given name.

The output parameter value is populated with the value of that parameter. Note that only integer, double, and string types are supported (see the WQLOperand class). The implementer of this method must perform appropriate conversions to the appropriate type.

Parameters:
propertyName name of property to be gotten. This can be of the form: name(.subname)* examples: propertyName className.propertyName propertyName.embeddedPropertyName1 propertyName.embeddedPropertyName1.embeddedPropertyName2 className.propertyName.embeddedPropertyName1
value holds the value of the property upon return.
Returns:
true if such a property was found and false otherwise.

Implements OW_NAMESPACE::WQLPropertySource.

Definition at line 65 of file OW_WQLInstancePropertySource.cpp.

References OW_NAMESPACE::Array< T >::empty(), and OW_NAMESPACE::String::tokenize().

bool OW_NAMESPACE::WQLInstancePropertySource::getValueAux const CIMInstance ci,
const StringArray propNames,
WQLOperand value
[static, private]
 

Definition at line 125 of file OW_WQLInstancePropertySource.cpp.

References OW_NAMESPACE::Array< T >::empty().


Member Data Documentation

CIMInstance OW_NAMESPACE::WQLInstancePropertySource::ci [private]
 

Definition at line 67 of file OW_WQLInstancePropertySource.hpp.

Referenced by evaluateISAAux().

CIMOMHandleIFCRef OW_NAMESPACE::WQLInstancePropertySource::m_hdl [private]
 

Definition at line 74 of file OW_WQLInstancePropertySource.hpp.

Referenced by classIsDerivedFrom().

String OW_NAMESPACE::WQLInstancePropertySource::m_ns [private]
 

Definition at line 80 of file OW_WQLInstancePropertySource.hpp.

Referenced by classIsDerivedFrom().


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