version 1.33, 2005/05/09 14:52:59
|
version 1.34, 2005/11/10 15:10:13
|
|
|
Clears the CIMName. | Clears the CIMName. |
| |
<pre> | <pre> |
CIMMame n("name"); |
CIMName n("name"); |
n.clear(); | n.clear(); |
assert(n.isNull()); | assert(n.isNull()); |
</pre> | </pre> |
|
|
*/ | */ |
static Boolean legal(const String& name); | static Boolean legal(const String& name); |
| |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
|
Boolean equal(const char* name) const; |
|
|
|
CIMName& operator=(const char* name); |
|
|
|
#endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ |
|
|
private: | private: |
String cimName; | String cimName; |
|
friend class CIMNameUnchecked; |
}; | }; |
| |
/** | /** |
|
|
object contains no name so that accessing it with getString | object contains no name so that accessing it with getString |
should return an empty String | should return an empty String |
<pre> | <pre> |
CIMMamespaceName ns("root/test"); |
CIMNamespaceName ns("root/test"); |
ns.clear(); | ns.clear(); |
assert(ns.isNull()); | assert(ns.isNull()); |
</pre> | </pre> |
|
|
@return true if the name passed is equal to the name in this | @return true if the name passed is equal to the name in this |
class. CIM names are case insensitive and so is this method. | class. CIM names are case insensitive and so is this method. |
<pre> | <pre> |
CIMMamespaceName ns("root/test"); |
CIMNamespaceName ns("root/test"); |
CIMMamespaceName ns1("root/test"); |
CIMNamespaceName ns1("root/test"); |
assert( ns.equal(ns1); | assert( ns.equal(ns1); |
</pre> | </pre> |
*/ | */ |
|
|
*/ | */ |
static Boolean legal(const String& name); | static Boolean legal(const String& name); |
| |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
|
Boolean equal(const char* name) const; |
|
|
|
CIMNamespaceName& operator=(const char* name); |
|
|
|
#endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ |
|
|
private: | private: |
String cimNamespaceName; | String cimNamespaceName; |
}; | }; |
|
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
|
#ifdef PEGASUS_INTERNALONLY |
|
# include "CIMNameInline.h" |
|
#endif |
|
|
#endif /* Pegasus_Name_h */ | #endif /* Pegasus_Name_h */ |