OWBI1::CIMScope Class Reference

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

#include <OWBI1_CIMScope.hpp>

Inheritance diagram for OWBI1::CIMScope:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef detail::CIMScopeRepRef
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.
 CIMScope (const detail::CIMScopeRepRef &rep)
 ~CIMScope ()
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.
detail::CIMScopeRepRef getRep () const

Private Attributes

detail::CIMScopeRepRef m_rep

Detailed Description

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

Definition at line 51 of file OWBI1_CIMScope.hpp.


Member Typedef Documentation

typedef detail::CIMScopeRepRef CIMScope::* OWBI1::CIMScope::safe_bool
 

Definition at line 121 of file OWBI1_CIMScope.hpp.


Member Enumeration Documentation

enum OWBI1::CIMScope::Scope
 

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

Definition at line 55 of file OWBI1_CIMScope.hpp.


Constructor & Destructor Documentation

OWBI1::CIMScope::CIMScope  ) 
 

Create an invalid scope.

Definition at line 50 of file OWBI1_CIMScope.cpp.

OWBI1::CIMScope::CIMScope Scope  scopeVal  ) 
 

Create a scope with a specified scoping value.

Parameters:
scopeVal The scoping value.

Definition at line 56 of file OWBI1_CIMScope.cpp.

OWBI1::CIMScope::CIMScope const CIMScope arg  ) 
 

Copy constructor.

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

Definition at line 61 of file OWBI1_CIMScope.cpp.

OWBI1::CIMScope::CIMScope const detail::CIMScopeRepRef rep  )  [explicit]
 

Definition at line 68 of file OWBI1_CIMScope.cpp.

OWBI1::CIMScope::~CIMScope  ) 
 

Definition at line 74 of file OWBI1_CIMScope.cpp.


Member Function Documentation

bool OWBI1::CIMScope::equals const CIMScope arg  )  const
 

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 95 of file OWBI1_CIMScope.cpp.

References m_rep.

Referenced by operator!=(), and operator==().

CIMScopeRepRef OWBI1::CIMScope::getRep  )  const
 

Definition at line 163 of file OWBI1_CIMScope.cpp.

References m_rep.

Referenced by OWBI1::CIMQualifierType::addScope(), OWBI1::CIMQualifierType::hasScope(), and OWBI1::operator<().

CIMScope::Scope OWBI1::CIMScope::getScope  )  const
 

Returns:
The scoping value of this scope.

Definition at line 88 of file OWBI1_CIMScope.cpp.

References m_rep.

OWBI1::CIMScope::operator safe_bool  )  const
 

Returns:
true if this is a valid flavor

Definition at line 113 of file OWBI1_CIMScope.cpp.

References m_rep.

bool OWBI1::CIMScope::operator!  )  const
 

Definition at line 119 of file OWBI1_CIMScope.cpp.

References m_rep.

bool OWBI1::CIMScope::operator!= const CIMScope arg  )  const
 

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 107 of file OWBI1_CIMScope.cpp.

References equals().

CIMScope & OWBI1::CIMScope::operator= const CIMScope arg  ) 
 

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 80 of file OWBI1_CIMScope.cpp.

References m_rep.

bool OWBI1::CIMScope::operator== const CIMScope arg  )  const
 

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 101 of file OWBI1_CIMScope.cpp.

References equals().

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

Read this object from an input stream.

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

Implements OWBI1::SerializableIFC.

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

Set this to a null object.

Implements OWBI1::CIMBase.

Definition at line 156 of file OWBI1_CIMScope.cpp.

References m_rep.

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

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

Implements OWBI1::CIMBase.

Definition at line 137 of file OWBI1_CIMScope.cpp.

References m_rep.

Referenced by toString().

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

Returns:
The string representation of this scopy

Implements OWBI1::CIMBase.

Definition at line 131 of file OWBI1_CIMScope.cpp.

References toMOF().

virtual void OWBI1::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 OWBI1::SerializableIFC.


Member Data Documentation

detail::CIMScopeRepRef OWBI1::CIMScope::m_rep [private]
 

Definition at line 148 of file OWBI1_CIMScope.hpp.

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


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