OW_NAMESPACE::CIMQualifierType Class Reference

The CIMQualifierType class encapsulates the data and functionality associated with a CIM qualifier type. More...

#include <OW_CIMQualifierType.hpp>

Inheritance diagram for OW_NAMESPACE::CIMQualifierType:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef COWIntrusiveReference<
QUALTData > CIMQualifierType::* 
safe_bool

Public Member Functions

 CIMQualifierType ()
 Create a new CIMQualifierType object.
 CIMQualifierType (CIMNULL_t)
 Create a NULL CIMQualifierType object.
 CIMQualifierType (const CIMName &name)
 Create an CIMQualifierType with a given name.
 CIMQualifierType (const char *name)
 Create an CIMQualifierType with a given name.
 CIMQualifierType (const CIMQualifierType &arg)
 Copy ctor.
 ~CIMQualifierType ()
 Destroy this CIMQualifierType object.
virtual void setNull ()
 Set this to a null object.
CIMQualifierTypeoperator= (const CIMQualifierType &arg)
 Assignment operator.
const CIMScopeArraygetScope () const
CIMDataType getDataType () const
Int32 getDataSize () const
CIMValue getDefaultValue () const
CIMQualifierTypesetDataType (const CIMDataType &dataType)
 Set the data type for this CIMQualifierType object.
CIMQualifierTypesetDataType (const CIMDataType::Type &dataType)
 Set the data type for this CIMQualifierType object.
CIMQualifierTypesetDefaultValue (const CIMValue &defValue)
 Set the default value for this CIMQualifierType object.
CIMQualifierTypeaddScope (const CIMScope &newScope)
 Add a scope to this CIMQualifierType object.
bool hasScope (const CIMScope &scopeArg) const
 Determine if this CIMQualifierType has a specified scope.
bool hasFlavor (const CIMFlavor &flavorArg) const
 Determine if this CIMQualifierType has a specified flavor.
CIMQualifierTypeaddFlavor (const CIMFlavor &newFlavor)
 Add a flavor to this CIMQualifierType object.
CIMQualifierTyperemoveFlavor (const Int32 flavor)
 Remove a flavor from this CIMQualifierType.
CIMFlavorArray getFlavors () const
bool hasDefaultValue () const
bool isDefaultValueArray () const
virtual void writeObject (std::ostream &ostrm) const
 Write this CIMQualifierType object to the given output stream.
virtual void readObject (std::istream &istrm)
 Read this CIMQualifierType object from the given input stream.
virtual String toString () const
virtual String toMOF () const
virtual String getName () const
virtual void setName (const CIMName &name)
 Set the name of this qualifier type.
 operator safe_bool () const
bool operator! () const

Private Attributes

COWIntrusiveReference< QUALTDatam_pdata

Friends

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

Classes

struct  QUALTData

Detailed Description

The CIMQualifierType class encapsulates the data and functionality associated with a CIM qualifier type.

Definition at line 53 of file OW_CIMQualifierType.hpp.


Member Typedef Documentation

typedef COWIntrusiveReference<QUALTData> CIMQualifierType::* OW_NAMESPACE::CIMQualifierType::safe_bool
 

Definition at line 205 of file OW_CIMQualifierType.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CIMQualifierType::CIMQualifierType  ) 
 

Create a new CIMQualifierType object.

Definition at line 84 of file OW_CIMQualifierType.cpp.

References addFlavor(), OW_NAMESPACE::CIMFlavor::ENABLEOVERRIDE, and OW_NAMESPACE::CIMFlavor::TOSUBCLASS.

OW_NAMESPACE::CIMQualifierType::CIMQualifierType CIMNULL_t   )  [explicit]
 

Create a NULL CIMQualifierType object.

Definition at line 91 of file OW_CIMQualifierType.cpp.

OW_NAMESPACE::CIMQualifierType::CIMQualifierType const CIMName name  ) 
 

Create an CIMQualifierType with a given name.

Parameters:
name The name for this CIMQualifierType object.

Definition at line 96 of file OW_CIMQualifierType.cpp.

References addFlavor(), OW_NAMESPACE::CIMFlavor::ENABLEOVERRIDE, m_pdata, name, and OW_NAMESPACE::CIMFlavor::TOSUBCLASS.

OW_NAMESPACE::CIMQualifierType::CIMQualifierType const char *  name  ) 
 

Create an CIMQualifierType with a given name.

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

Definition at line 104 of file OW_CIMQualifierType.cpp.

References addFlavor(), OW_NAMESPACE::CIMFlavor::ENABLEOVERRIDE, m_pdata, and OW_NAMESPACE::CIMFlavor::TOSUBCLASS.

OW_NAMESPACE::CIMQualifierType::CIMQualifierType const CIMQualifierType arg  ) 
 

Copy ctor.

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

Definition at line 112 of file OW_CIMQualifierType.cpp.

OW_NAMESPACE::CIMQualifierType::~CIMQualifierType  ) 
 

Destroy this CIMQualifierType object.

Definition at line 117 of file OW_CIMQualifierType.cpp.


Member Function Documentation

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::addFlavor const CIMFlavor newFlavor  ) 
 

Add a flavor to this CIMQualifierType object.

Parameters:
newFlavor The flavor to add to this CIMQualifierType object.
Returns:
a reference to *this

Definition at line 240 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMFlavor::DISABLEOVERRIDE, OW_NAMESPACE::CIMFlavor::ENABLEOVERRIDE, OW_NAMESPACE::CIMFlavor::getFlavor(), hasFlavor(), m_pdata, removeFlavor(), OW_NAMESPACE::CIMFlavor::RESTRICTED, and OW_NAMESPACE::CIMFlavor::TOSUBCLASS.

Referenced by CIMQualifierType(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitDefaultFlavor().

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::addScope const CIMScope newScope  ) 
 

Add a scope to this CIMQualifierType object.

Parameters:
newScope The scope to add to this CIMQualifierType.
Returns:
a reference to *this

Definition at line 189 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMScope::ANY, hasScope(), and m_pdata.

Int32 OW_NAMESPACE::CIMQualifierType::getDataSize  )  const
 

Returns:
The size of the data for CIMQualifierType object.

Definition at line 147 of file OW_CIMQualifierType.cpp.

References m_pdata.

CIMDataType OW_NAMESPACE::CIMQualifierType::getDataType  )  const
 

Returns:
The data type for this CIMQualifierType object.

Definition at line 141 of file OW_CIMQualifierType.cpp.

References m_pdata.

Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::getQualifierDataType().

CIMValue OW_NAMESPACE::CIMQualifierType::getDefaultValue  )  const
 

Returns:
The default value for this CIMQualifierType object.

Definition at line 153 of file OW_CIMQualifierType.cpp.

References m_pdata.

Referenced by OW_NAMESPACE::CIMQualifier::CIMQualifier().

CIMFlavorArray OW_NAMESPACE::CIMQualifierType::getFlavors  )  const
 

Returns:
The flavors for this CIMQualifierType object.

Definition at line 287 of file OW_CIMQualifierType.cpp.

References m_pdata.

Referenced by OW_NAMESPACE::MetaRepository::_resolveQualifiers(), and OW_NAMESPACE::CIMQualifier::CIMQualifier().

String OW_NAMESPACE::CIMQualifierType::getName  )  const [virtual]
 

Returns:
The name of this qualifier type.

Implements OW_NAMESPACE::CIMElement.

Definition at line 310 of file OW_CIMQualifierType.cpp.

References m_pdata.

Referenced by OW_NAMESPACE::MetaRepository::_addQualifierType(), OW_NAMESPACE::MOF::CIMOMVisitor::CIMOMprocessQualifierType(), OW_NAMESPACE::CIMQualifier::CIMQualifier(), OW_NAMESPACE::CIMtoXML(), OW_NAMESPACE::MetaRepository::setQualifierType(), and OW_NAMESPACE::CIMServer::setQualifierType().

const CIMScopeArray & OW_NAMESPACE::CIMQualifierType::getScope  )  const
 

Returns:
the Scopes for this CIMQualifierType object

Definition at line 135 of file OW_CIMQualifierType.cpp.

References m_pdata.

bool OW_NAMESPACE::CIMQualifierType::hasDefaultValue  )  const
 

Returns:
true this CIMQualifierType has a default value. Otherwise false.

Definition at line 293 of file OW_CIMQualifierType.cpp.

References m_pdata.

bool OW_NAMESPACE::CIMQualifierType::hasFlavor const CIMFlavor flavorArg  )  const
 

Determine if this CIMQualifierType has a specified flavor.

Parameters:
flavorArg The flavor to check for.
Returns:
true if this CIMQualifierType has the given flavor. Otherwise false.

Definition at line 223 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMFlavor::getFlavor(), i, and m_pdata.

Referenced by addFlavor().

bool OW_NAMESPACE::CIMQualifierType::hasScope const CIMScope scopeArg  )  const
 

Determine if this CIMQualifierType has a specified scope.

Parameters:
scopeArg The scope to check for.
Returns:
true if this CIMQualifierType has the given scope. Otherwise false.

Definition at line 206 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMScope::getScope(), i, and m_pdata.

Referenced by addScope().

bool OW_NAMESPACE::CIMQualifierType::isDefaultValueArray  )  const
 

Returns:
true if the default value is an array type. Otherwise false.

Definition at line 299 of file OW_CIMQualifierType.cpp.

References m_pdata.

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

Definition at line 206 of file OW_CIMQualifierType.hpp.

References m_pdata.

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

Definition at line 208 of file OW_CIMQualifierType.hpp.

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::operator= const CIMQualifierType arg  ) 
 

Assignment operator.

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

Definition at line 122 of file OW_CIMQualifierType.cpp.

References m_pdata.

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

Read this CIMQualifierType object from the given input stream.

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

Implements OW_NAMESPACE::SerializableIFC.

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::removeFlavor const Int32  flavor  ) 
 

Remove a flavor from this CIMQualifierType.

Parameters:
flavor The integral value of the flavor to remove.
Returns:
a reference to *this

Definition at line 269 of file OW_CIMQualifierType.cpp.

References i, and m_pdata.

Referenced by addFlavor().

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::setDataType const CIMDataType::Type dataType  ) 
 

Set the data type for this CIMQualifierType object.

Parameters:
dataType The CIMDataType::Type for this CIMQualifierType object.
Returns:
a reference to *this

Definition at line 171 of file OW_CIMQualifierType.cpp.

References setDataType().

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::setDataType const CIMDataType dataType  ) 
 

Set the data type for this CIMQualifierType object.

Parameters:
dataType The CIMDataType for this CIMQualifierType object.
Returns:
a reference to *this

Definition at line 159 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMValueCast::castValueToDataType(), and m_pdata.

Referenced by setDataType().

CIMQualifierType & OW_NAMESPACE::CIMQualifierType::setDefaultValue const CIMValue defValue  ) 
 

Set the default value for this CIMQualifierType object.

Parameters:
defValue The default value for this CIMQualifierType.
Returns:
a reference to *this

Definition at line 177 of file OW_CIMQualifierType.cpp.

References OW_NAMESPACE::CIMValueCast::castValueToDataType(), and m_pdata.

void OW_NAMESPACE::CIMQualifierType::setName const CIMName name  )  [virtual]
 

Set the name of this qualifier type.

Parameters:
name The new name for this qualifier type.

Implements OW_NAMESPACE::CIMElement.

Definition at line 316 of file OW_CIMQualifierType.cpp.

References m_pdata, and name.

void OW_NAMESPACE::CIMQualifierType::setNull  )  [virtual]
 

Set this to a null object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 129 of file OW_CIMQualifierType.cpp.

References m_pdata.

String OW_NAMESPACE::CIMQualifierType::toMOF  )  const [virtual]
 

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

Implements OW_NAMESPACE::CIMBase.

Definition at line 377 of file OW_CIMQualifierType.cpp.

References i, and m_pdata.

Referenced by toString().

String OW_NAMESPACE::CIMQualifierType::toString  )  const [virtual]
 

Returns:
An String representing this CIMQualifierType.

Reimplemented from OW_NAMESPACE::CIMElement.

Definition at line 371 of file OW_CIMQualifierType.cpp.

References toMOF().

Referenced by OW_NAMESPACE::CIMRepository2::setQualifierType(), and OW_NAMESPACE::CIMRepository::setQualifierType().

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

Write this CIMQualifierType object to the given output stream.

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

Implements OW_NAMESPACE::SerializableIFC.


Friends And Related Function Documentation

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

Definition at line 79 of file OW_CIMQualifierType.cpp.


Member Data Documentation

COWIntrusiveReference<QUALTData> OW_NAMESPACE::CIMQualifierType::m_pdata [private]
 

Definition at line 219 of file OW_CIMQualifierType.hpp.

Referenced by addFlavor(), addScope(), CIMQualifierType(), getDataSize(), getDataType(), getDefaultValue(), getFlavors(), getName(), getScope(), hasDefaultValue(), hasFlavor(), hasScope(), isDefaultValueArray(), operator safe_bool(), OW_NAMESPACE::operator<(), operator=(), removeFlavor(), setDataType(), setDefaultValue(), setName(), setNull(), and toMOF().


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