|
CIMNamespaceName Class Reference#include <CIMName.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
CIMNamespaceName::CIMNamespaceName |
( |
|
) |
|
CIMNamespaceName::CIMNamespaceName |
( |
const String & |
name |
) |
|
Constructs a non-null CIMNamespaceName with the specified name. - Parameters:
-
| name | A String containing the CIM namespace name. |
- Exceptions:
-
CIMNamespaceName::CIMNamespaceName |
( |
const char * |
name |
) |
|
Constructs a non-null CIMNamespaceName with the specified name. - Parameters:
-
| name | A character string containing the CIM namespace name. |
- Exceptions:
-
| 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 |
Member Function Documentation
void CIMNamespaceName::clear |
( |
|
) |
|
Sets the CIM namespace name to a null value.
Example:
CIMNamespaceName n("root/test");
n.clear();
assert(n.isNull());
const String& CIMNamespaceName::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.
Boolean CIMNamespaceName::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.
static Boolean CIMNamespaceName::legal |
( |
const String & |
name |
) |
[static] |
Determines whether a name is a valid CIM namespace name.
Example:
assert(CIMNamespaceName::legal("root/test"));
assert(!CIMNamespaceNamelegal("Wrong!"));
- Parameters:
-
| name | A String containing the name to test. |
- Returns:
- True if the specified name is a valid CIM namespace name, false otherwise.
Assigns the value of the specified CIMNamespaceName object to this object. - Parameters:
-
The documentation for this class was generated from the following file:
- /scratch/rpmbuild.5425.Bj5455/pegasus/src/Pegasus/Common/CIMName.h
|