OW_NAMESPACE::CIMNameSpace Class Reference

The CIMNameSpace class represents a CIM namespace. More...

#include <OW_CIMNameSpace.hpp>

Inheritance diagram for OW_NAMESPACE::CIMNameSpace:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef COWIntrusiveReference<
NSData > CIMNameSpace::* 
safe_bool

Public Member Functions

 CIMNameSpace ()
 Create a new CIMNameSpace object.
 CIMNameSpace (CIMNULL_t)
 Create a NULL CIMNameSpace object.
 CIMNameSpace (const CIMUrl &hostUrl, const String &nameSpace)
 Create a new CIMNameSpace object.
 CIMNameSpace (const String &nameSpace)
 Create a new CIMNameSpace object.
 CIMNameSpace (const char *nameSpace)
 Create a new CIMNameSpace object.
 CIMNameSpace (const CIMNameSpace &arg)
 Create a new CIMNameSpace object that is a copy of another.
 ~CIMNameSpace ()
 Destroy this CIMNameSpace object.
virtual void setNull ()
 Set this to a null object.
CIMNameSpaceoperator= (const CIMNameSpace &arg)
 Assignment operator.
 operator safe_bool () const
bool operator! () const
String getNameSpace () const
String getHost () const
CIMUrl getHostUrl () const
Int32 getPortNumber () const
String getProtocol () const
String getFileName () const
bool isLocal () const
CIMNameSpacesetNameSpace (const String &nameSpace)
 Set the namespace component of this CIMNameSpace object.
CIMNameSpacesetHostUrl (const CIMUrl &hostUrl)
 Set the host url component of this CIMNameSpace object.
CIMNameSpacesetHost (const String &host)
 Set the host of the url component for this CIMNameSpace object.
CIMNameSpacesetProtocol (const String &protocol)
 Set the protocol.
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.
virtual String toString () const
virtual String toMOF () const

Private Attributes

COWIntrusiveReference< NSDatam_pdata

Friends

bool operator< (const CIMNameSpace::NSData &x, const CIMNameSpace::NSData &y)
OW_COMMON_API bool operator< (const CIMNameSpace &lhs, const CIMNameSpace &rhs)

Classes

struct  NSData

Detailed Description

The CIMNameSpace class represents a CIM namespace.

The CIM namespace is a component of a CIM object name (namespace + model path) that provides a scope within which all objects are unique. CIMNameSpace objects are ref counted and copy on write. It is possible to have a NULL CIMNameSpace object.

Definition at line 55 of file OW_CIMNameSpace.hpp.


Member Typedef Documentation

typedef COWIntrusiveReference<NSData> CIMNameSpace::* OW_NAMESPACE::CIMNameSpace::safe_bool
 

Definition at line 112 of file OW_CIMNameSpace.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CIMNameSpace::CIMNameSpace  ) 
 

Create a new CIMNameSpace object.

Definition at line 63 of file OW_CIMNameSpace.cpp.

OW_NAMESPACE::CIMNameSpace::CIMNameSpace CIMNULL_t   )  [explicit]
 

Create a NULL CIMNameSpace object.

Definition at line 69 of file OW_CIMNameSpace.cpp.

OW_NAMESPACE::CIMNameSpace::CIMNameSpace const CIMUrl hostUrl,
const String nameSpace
 

Create a new CIMNameSpace object.

Parameters:
hostUrl The url component of this CIMNameSpace object.
nameSpace The namespace (e.g. "root/cimv2") component of this CIMNameSpace object.

Definition at line 74 of file OW_CIMNameSpace.cpp.

References OW_NAMESPACE::String::empty(), m_pdata, and setNameSpace().

OW_NAMESPACE::CIMNameSpace::CIMNameSpace const String nameSpace  )  [explicit]
 

Create a new CIMNameSpace object.

Parameters:
hostUrl The url component of this CIMNameSpace object.
nameSpace The namespace (e.g. "root/cimv2") component of this CIMNameSpace object.

Definition at line 89 of file OW_CIMNameSpace.cpp.

References OW_NAMESPACE::String::empty(), and setNameSpace().

OW_NAMESPACE::CIMNameSpace::CIMNameSpace const char *  nameSpace  )  [explicit]
 

Create a new CIMNameSpace object.

Parameters:
hostUrl The url component of this CIMNameSpace object.
nameSpace The namespace (e.g. "root/cimv2") component of this CIMNameSpace object.

Definition at line 102 of file OW_CIMNameSpace.cpp.

References setNameSpace().

OW_NAMESPACE::CIMNameSpace::CIMNameSpace const CIMNameSpace arg  ) 
 

Create a new CIMNameSpace object that is a copy of another.

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

Definition at line 115 of file OW_CIMNameSpace.cpp.

OW_NAMESPACE::CIMNameSpace::~CIMNameSpace  ) 
 

Destroy this CIMNameSpace object.

Definition at line 120 of file OW_CIMNameSpace.cpp.


Member Function Documentation

String OW_NAMESPACE::CIMNameSpace::getFileName  )  const
 

Returns:
The file name from the URL component of this CIMNameSpace.

Definition at line 168 of file OW_CIMNameSpace.cpp.

References m_pdata.

String OW_NAMESPACE::CIMNameSpace::getHost  )  const
 

Returns:
The host component of this CIMNameSpace object.

Definition at line 144 of file OW_CIMNameSpace.cpp.

References m_pdata.

CIMUrl OW_NAMESPACE::CIMNameSpace::getHostUrl  )  const
 

Returns:
The host URL component of this CIMNameSpace object.

Definition at line 150 of file OW_CIMNameSpace.cpp.

References m_pdata.

String OW_NAMESPACE::CIMNameSpace::getNameSpace  )  const
 

Returns:
The namespace component of this CIMNameSpace object.

Definition at line 138 of file OW_CIMNameSpace.cpp.

References m_pdata.

Int32 OW_NAMESPACE::CIMNameSpace::getPortNumber  )  const
 

Returns:
The port number from the URL component of this CIMNameSpace.

Definition at line 156 of file OW_CIMNameSpace.cpp.

References m_pdata.

String OW_NAMESPACE::CIMNameSpace::getProtocol  )  const
 

Returns:
The protocol from the URL component of this CIMNameSpace.

Definition at line 162 of file OW_CIMNameSpace.cpp.

References m_pdata.

bool OW_NAMESPACE::CIMNameSpace::isLocal  )  const
 

Returns:
true if this namespace refers to a namespace hosted by the local CIMOM.

Definition at line 174 of file OW_CIMNameSpace.cpp.

References m_pdata.

Referenced by OW_NAMESPACE::valueToXML().

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

Definition at line 113 of file OW_CIMNameSpace.hpp.

References m_pdata.

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

Definition at line 115 of file OW_CIMNameSpace.hpp.

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

Assignment operator.

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

Definition at line 131 of file OW_CIMNameSpace.cpp.

References m_pdata.

virtual void OW_NAMESPACE::CIMNameSpace::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.

CIMNameSpace & OW_NAMESPACE::CIMNameSpace::setHost const String host  ) 
 

Set the host of the url component for this CIMNameSpace object.

Parameters:
host The new host for the url component of this object.
Returns:
a reference to *this

Definition at line 208 of file OW_CIMNameSpace.cpp.

References m_pdata.

CIMNameSpace & OW_NAMESPACE::CIMNameSpace::setHostUrl const CIMUrl hostUrl  ) 
 

Set the host url component of this CIMNameSpace object.

Parameters:
hostUrl The new host url for this CIMNameSpace.
Returns:
a reference to *this

Definition at line 201 of file OW_CIMNameSpace.cpp.

References m_pdata.

CIMNameSpace & OW_NAMESPACE::CIMNameSpace::setNameSpace const String nameSpace  ) 
 

Set the namespace component of this CIMNameSpace object.

Parameters:
nameSpace The namespace for this object as an String
Returns:
a reference to *this

Definition at line 186 of file OW_CIMNameSpace.cpp.

References OW_NAMESPACE::String::c_str(), m_pdata, and OW_NAMESPACE::String::trim().

Referenced by CIMNameSpace().

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

Set this to a null object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 125 of file OW_CIMNameSpace.cpp.

References m_pdata.

CIMNameSpace & OW_NAMESPACE::CIMNameSpace::setProtocol const String protocol  ) 
 

Set the protocol.

Parameters:
protocol The protocol component of the url for the name space
Returns:
a reference to *this

Definition at line 215 of file OW_CIMNameSpace.cpp.

References m_pdata.

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

Returns:
The MOF representation of this CIMNameSpace object. Currently unimplemented.

Implements OW_NAMESPACE::CIMBase.

Definition at line 253 of file OW_CIMNameSpace.cpp.

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

Returns:
The string representation of this CIMNameSpace object.

Implements OW_NAMESPACE::CIMBase.

Definition at line 180 of file OW_CIMNameSpace.cpp.

References m_pdata.

virtual void OW_NAMESPACE::CIMNameSpace::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

OW_COMMON_API bool operator< const CIMNameSpace lhs,
const CIMNameSpace rhs
[friend]
 

Definition at line 246 of file OW_CIMNameSpace.cpp.

bool operator< const CIMNameSpace::NSData x,
const CIMNameSpace::NSData y
[friend]
 

Definition at line 56 of file OW_CIMNameSpace.cpp.


Member Data Documentation

COWIntrusiveReference<NSData> OW_NAMESPACE::CIMNameSpace::m_pdata [private]
 

Definition at line 196 of file OW_CIMNameSpace.hpp.

Referenced by CIMNameSpace(), getFileName(), getHost(), getHostUrl(), getNameSpace(), getPortNumber(), getProtocol(), isLocal(), operator safe_bool(), OW_NAMESPACE::operator<(), operator=(), setHost(), setHostUrl(), setNameSpace(), setNull(), setProtocol(), and toString().


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