OW_NAMESPACE::CIMParameter Class Reference

The CIMParameter class encapsulates all data and functionality pertinent to a parameter to a method within a CIM class. More...

#include <OW_CIMParameter.hpp>

Inheritance diagram for OW_NAMESPACE::CIMParameter:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef COWIntrusiveReference<
PARMData > CIMParameter::* 
safe_bool

Public Member Functions

 CIMParameter ()
 Create a new CIMParameter object.
 CIMParameter (CIMNULL_t)
 Create a NULL CIMParameter object.
 CIMParameter (const CIMName &name)
 Create an CIMParameter object with a given name.
 CIMParameter (const char *name)
 Create an CIMParameter object with a given name.
 CIMParameter (const CIMParameter &arg)
 Copy constructor.
 ~CIMParameter ()
 Destroy this CIMParameter object.
virtual void setNull ()
 Set this to a null object.
CIMParameteroperator= (const CIMParameter &arg)
 Assignment operator.
 operator safe_bool () const
bool operator! () const
CIMParametersetQualifiers (const CIMQualifierArray &quals)
 Set the qualifiers for this parameter.
CIMQualifierArray getQualifiers () const
 Get the qualifiers for this parameter.
CIMParametersetDataType (const CIMDataType &type)
 Set the data type for this parameter.
CIMDataType getType () const
 Get the data type for this parameter.
Int32 getDataSize () const
CIMQualifier getQualifier (const CIMName &name) const
 Get a qualifier by name for this parameter.
virtual String getName () const
virtual void setName (const CIMName &name)
 Set the name of this CIMParameter.
virtual void writeObject (std::ostream &ostrm) const
 Write this object to the given output stream.
virtual void readObject (std::istream &istrm)
 Read this 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.

Private Attributes

COWIntrusiveReference< PARMDatam_pdata

Friends

OW_COMMON_API bool operator< (const CIMParameter &x, const CIMParameter &y)

Classes

struct  PARMData

Detailed Description

The CIMParameter class encapsulates all data and functionality pertinent to a parameter to a method within a CIM class.

Definition at line 52 of file OW_CIMParameter.hpp.


Member Typedef Documentation

typedef COWIntrusiveReference<PARMData> CIMParameter::* OW_NAMESPACE::CIMParameter::safe_bool
 

Definition at line 94 of file OW_CIMParameter.hpp.


Constructor & Destructor Documentation

CIMParameter::CIMParameter  ) 
 

Create a new CIMParameter object.

Definition at line 68 of file OW_CIMParameter.cpp.

CIMParameter::CIMParameter CIMNULL_t   )  [explicit]
 

Create a NULL CIMParameter object.

Definition at line 73 of file OW_CIMParameter.cpp.

CIMParameter::CIMParameter const CIMName name  )  [explicit]
 

Create an CIMParameter object with a given name.

Parameters:
name The name for this parameter.

Definition at line 84 of file OW_CIMParameter.cpp.

References m_pdata, and name.

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

Create an CIMParameter object with a given name.

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

Definition at line 78 of file OW_CIMParameter.cpp.

References m_pdata.

CIMParameter::CIMParameter const CIMParameter arg  ) 
 

Copy constructor.

Parameters:
arg The CIMParameter object to make this one a copy of.

Definition at line 90 of file OW_CIMParameter.cpp.

CIMParameter::~CIMParameter  ) 
 

Destroy this CIMParameter object.

Definition at line 95 of file OW_CIMParameter.cpp.


Member Function Documentation

Int32 CIMParameter::getDataSize  )  const
 

Returns:
The size of the data for this parameter.

Definition at line 139 of file OW_CIMParameter.cpp.

String CIMParameter::getName  )  const [virtual]
 

Returns:
The name of this CIMParameter.

Implements OW_NAMESPACE::CIMElement.

Definition at line 159 of file OW_CIMParameter.cpp.

Referenced by OW_NAMESPACE::CIMtoXML().

CIMQualifier CIMParameter::getQualifier const CIMName name  )  const
 

Get a qualifier by name for this parameter.

Parameters:
name The name of the qualifier to retrieve.
Returns:
The CIMQualifier associated with the given name if there is one. Otherwise a NULL CIMQualifier.

Definition at line 145 of file OW_CIMParameter.cpp.

References i, and name.

CIMQualifierArray CIMParameter::getQualifiers  )  const
 

Get the qualifiers for this parameter.

Returns:
An CIMQualifierArray that contains the qualifiers for this parameter.

Definition at line 120 of file OW_CIMParameter.cpp.

Referenced by OW_NAMESPACE::qualifierXML().

CIMDataType CIMParameter::getType  )  const
 

Get the data type for this parameter.

Returns:
An CIMDataType for this parameter.

Definition at line 133 of file OW_CIMParameter.cpp.

bool CIMParameter::hasTrueQualifier const CIMName name  )  const
 

Test if this property has a qualifier that is a boolean type with a value of true.

Parameters:
name The name of the qualifier to test.
Returns:
true if the qualifier exists and has a value of true.

Definition at line 244 of file OW_CIMParameter.cpp.

References BOOLEAN, OW_NAMESPACE::CIMValue::getType(), OW_NAMESPACE::CIMQualifier::getValue(), and name.

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

Returns:
true if this a valid CIMParameter object.

Definition at line 98 of file OW_CIMParameter.hpp.

References m_pdata.

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

Definition at line 100 of file OW_CIMParameter.hpp.

CIMParameter & CIMParameter::operator= const CIMParameter arg  ) 
 

Assignment operator.

Parameters:
arg The CIMParameter object to assign to this one.
Returns:
A reference to this object after the assignment has been made.

Definition at line 106 of file OW_CIMParameter.cpp.

References m_pdata.

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

Read this object from the given input stream.

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

Implements OW_NAMESPACE::SerializableIFC.

CIMParameter & CIMParameter::setDataType const CIMDataType type  ) 
 

Set the data type for this parameter.

Parameters:
type The CIMDataType for this parameter.
Returns:
a reference to *this

Definition at line 126 of file OW_CIMParameter.cpp.

References type.

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

Set the name of this CIMParameter.

Parameters:
name The new name for this CIMParameter.

Implements OW_NAMESPACE::CIMElement.

Definition at line 165 of file OW_CIMParameter.cpp.

References name.

void CIMParameter::setNull  )  [virtual]
 

Set this to a null object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 100 of file OW_CIMParameter.cpp.

CIMParameter & CIMParameter::setQualifiers const CIMQualifierArray quals  ) 
 

Set the qualifiers for this parameter.

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

Definition at line 113 of file OW_CIMParameter.cpp.

String CIMParameter::toMOF  )  const [virtual]
 

Returns:
An String that contains the MOF representation of this CIMParameter object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 205 of file OW_CIMParameter.cpp.

References i.

String CIMParameter::toString  )  const [virtual]
 

Returns:
a string representation of this CIMParameter.

Reimplemented from OW_NAMESPACE::CIMElement.

Definition at line 199 of file OW_CIMParameter.cpp.

References OW_NAMESPACE::String::toString().

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

Write this object to the given output stream.

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

Implements OW_NAMESPACE::SerializableIFC.


Friends And Related Function Documentation

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

Definition at line 238 of file OW_CIMParameter.cpp.


Member Data Documentation

COWIntrusiveReference<PARMData> OW_NAMESPACE::CIMParameter::m_pdata [private]
 

Definition at line 180 of file OW_CIMParameter.hpp.

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


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