OW_NAMESPACE::CIMScope Class Reference

The CIMScope class encapsulated the data and functionality the is associated with CIM scopes. More...

#include <OW_CIMScope.hpp>

Inheritance diagram for OW_NAMESPACE::CIMScope:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Scope CIMScope::* safe_bool
enum  Scope {
  BAD = 0, SCHEMA = 1, CLASS = 2, ASSOCIATION = 3,
  INDICATION = 4, PROPERTY = 5, REFERENCE = 6, METHOD = 7,
  PARAMETER = 8, QUALIFIER = 9, ANY = 11, MAXSCOPE = 12
}

Public Member Functions

 CIMScope ()
 Create an invalid scope.
 CIMScope (Scope scopeVal)
 Create a scope with a specified scoping value.
 CIMScope (const CIMScope &arg)
 Copy constructor.
virtual void setNull ()
 Set this to a null object.
CIMScopeoperator= (const CIMScope &arg)
 Assignment operator.
Scope getScope () const
bool equals (const CIMScope &arg) const
 Determine if another scope is equal to this one.
bool operator== (const CIMScope &arg) const
 Determine if another scope is equal to this one.
bool operator!= (const CIMScope &arg) const
 Determine if another scope is not equal to this one.
 operator safe_bool () const
bool operator! () const
virtual String toString () const
virtual String toMOF () const
virtual void readObject (std::istream &istrm)
 Read this object from an input stream.
virtual void writeObject (std::ostream &ostrm) const
 Write this object to an output stream.

Static Private Member Functions

static bool validScope (Scope val)

Private Attributes

Scope m_val

Friends

bool operator< (const CIMScope &x, const CIMScope &y)

Detailed Description

The CIMScope class encapsulated the data and functionality the is associated with CIM scopes.

Definition at line 51 of file OW_CIMScope.hpp.


Member Typedef Documentation

typedef Scope CIMScope::* OW_NAMESPACE::CIMScope::safe_bool
 

Definition at line 135 of file OW_CIMScope.hpp.


Member Enumeration Documentation

enum OW_NAMESPACE::CIMScope::Scope
 

Enumerator:
BAD 
SCHEMA 
CLASS 
ASSOCIATION 
INDICATION 
PROPERTY 
REFERENCE 
METHOD 
PARAMETER 
QUALIFIER 
ANY 
MAXSCOPE 

Definition at line 55 of file OW_CIMScope.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CIMScope::CIMScope  )  [inline]
 

Create an invalid scope.

Definition at line 73 of file OW_CIMScope.hpp.

OW_NAMESPACE::CIMScope::CIMScope Scope  scopeVal  )  [inline]
 

Create a scope with a specified scoping value.

Parameters:
scopeVal The scoping value.

Definition at line 78 of file OW_CIMScope.hpp.

OW_NAMESPACE::CIMScope::CIMScope const CIMScope arg  )  [inline]
 

Copy constructor.

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

Definition at line 87 of file OW_CIMScope.hpp.


Member Function Documentation

bool OW_NAMESPACE::CIMScope::equals const CIMScope arg  )  const [inline]
 

Determine if another scope is equal to this one.

Parameters:
arg The scope to check for equality against.
Returns:
true if arg is equal to this scope. Otherwise false.

Definition at line 112 of file OW_CIMScope.hpp.

References m_val.

Scope OW_NAMESPACE::CIMScope::getScope  )  const [inline]
 

Returns:
The scoping value of this scope.

Definition at line 106 of file OW_CIMScope.hpp.

Referenced by OW_NAMESPACE::CIMQualifierType::hasScope().

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

Returns:
true if this is a valid flavor

Definition at line 139 of file OW_CIMScope.hpp.

References m_val.

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

Definition at line 141 of file OW_CIMScope.hpp.

bool OW_NAMESPACE::CIMScope::operator!= const CIMScope arg  )  const [inline]
 

Determine if another scope is not equal to this one.

Parameters:
arg The scope to check for inequality against.
Returns:
true if arg is not equal to this scope. Otherwise false.

Definition at line 130 of file OW_CIMScope.hpp.

CIMScope& OW_NAMESPACE::CIMScope::operator= const CIMScope arg  )  [inline]
 

Assignment operator.

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

Definition at line 98 of file OW_CIMScope.hpp.

References m_val.

bool OW_NAMESPACE::CIMScope::operator== const CIMScope arg  )  const [inline]
 

Determine if another scope is equal to this one.

Parameters:
arg The scope to check for equality against.
Returns:
true if arg is equal to this scope. Otherwise false.

Definition at line 121 of file OW_CIMScope.hpp.

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

Read this object from an input stream.

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

Implements OW_NAMESPACE::SerializableIFC.

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

Set this to a null object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 123 of file OW_CIMScope.cpp.

References BAD, and m_val.

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

Returns:
The MOF representation of this scope as an String.

Implements OW_NAMESPACE::CIMBase.

Definition at line 54 of file OW_CIMScope.cpp.

References ANY, ASSOCIATION, CLASS, INDICATION, m_val, METHOD, PARAMETER, PROPERTY, QUALIFIER, REFERENCE, and SCHEMA.

Referenced by toString().

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

Returns:
The string representation of this scopy

Implements OW_NAMESPACE::CIMBase.

Definition at line 48 of file OW_CIMScope.cpp.

References toMOF().

static bool OW_NAMESPACE::CIMScope::validScope Scope  val  )  [inline, static, private]
 

Definition at line 162 of file OW_CIMScope.hpp.

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

Write this object to an output stream.

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

Implements OW_NAMESPACE::SerializableIFC.


Friends And Related Function Documentation

bool operator< const CIMScope x,
const CIMScope y
[friend]
 

Definition at line 167 of file OW_CIMScope.hpp.


Member Data Documentation

Scope OW_NAMESPACE::CIMScope::m_val [private]
 

Definition at line 166 of file OW_CIMScope.hpp.

Referenced by equals(), operator safe_bool(), operator=(), setNull(), and toMOF().


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