[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]

Pegasus CIM Object Broker Documentation

[an error occurred while processing this directive]


[an error occurred while processing this directive]

 

Contents

o Introduction
o Objectives
o Overview
o Credits
o Pegasus Architecture
   o Design Goals
   o The Broker
   o Pegasus Providers.
   o Extension Services
   o Pegasus Clients.
   o Functional Flow
o Pegasus Components
   o Component Descriptions
   o Pegasus Directory Structure
o Pegasus Utilization
   o Pegasus Availability
   o Pegasus Installation
   o Pegasus Operation
   o Pegasus CIM Clients
   o Pegasus Providers
   o Pegasus MOF Compiler
o Programming Pegasus
   o CIM Objects in Pegasus
   o CIM Object Table
   o Class Definitions
o Pegasus Interfaces
   o CIM Operations over HTTP
   o Pegasus Client Interfaces
   o Pegasus Provider Interfaces
   o Pegasus Service Extension Interfaces
   o Repository Interfaces
o Writing Providers.
o Glossary
o Pegasus Code Examples
   o Client Examples
   o Client Coding Examples
   o Provider Coding Examples
o Document References
o Pegausus FAQ
o
In file ../../src/Pegasus/Common/CIMName.h:

class PEGASUS_COMMON_LINKAGE CIMNamespaceName

The CIMNamespaceName class represents the DMTF standard CIM namespace name definition.

Documentation

The CIMNamespaceName class represents the DMTF standard CIM namespace name definition.

A CIM namespace name must match the following expression:

        <CIMName>[ / <CIMName> ]*
    
A namespace name with a leading '/' character is accepted, but the leading character is removed. A CIMNamespaceName may be null, meaning that it has no value.

Inheritance:


Public Methods

[more] CIMNamespaceName ()
Constructs a null CIMName
[more] CIMNamespaceName (const String& name)
Constructs a non-null CIMNamespaceName with the specified name.
[more] CIMNamespaceName (const char* name)
Constructs a non-null CIMNamespaceName with the specified name.
[more]CIMNamespaceName& operator= (const CIMNamespaceName& name)
Assigns the value of the specified CIMNamespaceName object to this object.
[more]CIMNamespaceName& operator= (const String& name)
Sets the CIMNamespaceName with a String name.
[more]const String& getString () const
Gets a String form of the CIM namespace name.
[more]Boolean isNull () const
Determines whether the CIM namespace name is null.
[more]void clear ()
Sets the CIM namespace name to a null value.
[more]Boolean equal (const CIMNamespaceName& name) const
Compares the CIMNamespaceName with a specified CIMNamespaceName.
[more]static Boolean legal (const String& name)
Determines whether a name is a valid CIM namespace name.
[more]Boolean equal (const char* name) const
Compares the CIMNamespaceName with a specified character string.
[more]CIMNamespaceName& operator= (const char* name)
Sets the CIMNamespaceName with a character string name.

o CIMNamespaceName()
Constructs a null CIMName

o CIMNamespaceName(const String& name)
Constructs a non-null CIMNamespaceName with the specified name.
Throws:
InvalidNameException If the String does not contain a valid CIM namespace name.
Parameters:
name - A String containing the CIM namespace name.

o CIMNamespaceName(const char* name)
Constructs a non-null CIMNamespaceName with the specified name.
Throws:
InvalidNameException If the character string does not contain a valid CIM namespace name.
All exceptions thrown by String(const char* str) can be thrown here
Parameters:
name - A character string containing the CIM namespace name.

oCIMNamespaceName& operator=(const CIMNamespaceName& name)
Assigns the value of the specified CIMNamespaceName object to this object.
Parameters:
name - The CIMNamespaceName object from which to assign this CIMNamespaceName object.

oCIMNamespaceName& operator=(const String& name)
Sets the CIMNamespaceName with a String name. The resulting CIMNamespaceName object is non-null.

Example:

        CIMNamespaceName n;
        String name = "root/cimv2";
        n = name;
        
Throws:
InvalidNameException If the String does not contain a valid CIM namespace name.
Parameters:
name - A String containing the CIM namespace name to set.
Returns:
A reference to this CIMNamespaceName object.

oconst String& getString() const
Gets a String form of the CIM namespace name.

Example:

        CIMNamespaceName n("test/ns1");
        String s = n.getString();
        
Returns:
A reference to a String containing the CIM namespace name.

oBoolean isNull() const
Determines whether the CIM namespace name is null.

Example:

        CIMNamespaceName n;
        assert(n.isNull());
        n = "root/test";
        assert(!n.isNull());
        
Returns:
True if the CIM namespace name is null, false otherwise.

ovoid clear()
Sets the CIM namespace name to a null value.

Example:

        CIMNamespaceName n("root/test");
        n.clear();
        assert(n.isNull());
        

oBoolean equal(const CIMNamespaceName& name) const
Compares the CIMNamespaceName with a specified CIMNamespaceName. Comparisons of CIM namespace names are case-insensitive.

Example:

        CIMNamespaceName n1("root/cimv2");
        CIMNamespaceName n2("Root/CimV2");
        assert(n1.equal(n2));
        
Parameters:
name - The CIMNamespaceName to be compared.
Returns:
True if this name is equivalent to the specified name, false otherwise.

ostatic Boolean legal(const String& name)
Determines whether a name is a valid CIM namespace name.

Example:

        assert(CIMNamespaceName::legal("root/test"));
        assert(!CIMNamespaceName::legal("Wrong!"));
        
Parameters:
name - A String containing the name to test.
Returns:
True if the specified name is a valid CIM namespace name, false otherwise.

oBoolean equal(const char* name) const
Compares the CIMNamespaceName with a specified character string. Comparisons of CIM namespace names are case-insensitive.
Parameters:
name - The name to be compared.
Returns:
True if this name is equivalent to the specified name, false otherwise.

oCIMNamespaceName& operator=(const char* name)
Sets the CIMNamespaceName with a character string name. The resulting CIMNamespaceName object is non-null.
Throws:
InvalidNameException If the character string does not contain a valid CIM namespace name.
All exceptions thrown by String(const char* str) can be thrown here
Parameters:
name - A character string containing the CIM namespace name to set.
Returns:
A reference to this CIMNamespaceName object.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]