Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
#include <berryQualifiedName.h>
Public Member Functions | |
QualifiedName (std::string qualifier, std::string localName) | |
bool | operator== (const QualifiedName &qName) const |
bool | operator< (const QualifiedName &qName) const |
std::string | GetLocalName () const |
std::string | GetQualifier () const |
std::size_t | HashCode () const |
std::string | ToString () |
Public Attributes | |
std::string | qualifier |
std::string | localName |
Qualified names are two-part names: qualifier and local name. The qualifier must be in URI form (see RFC2396). Note however that the qualifier may be null
if the default name space is being used. The empty string is not a valid local name.
This class can be used without OSGi running.
This class is not intended to be subclassed by clients.
Definition at line 35 of file berryQualifiedName.h.
berry::QualifiedName::QualifiedName | ( | std::string | qualifier, |
std::string | localName | ||
) |
Creates and returns a new qualified name with the given qualifier and local name. The local name must not be the empty string. The qualifier may be null
.
Clients may instantiate.
qualifier | the qualifier string, or null |
localName | the local name string |
std::string berry::QualifiedName::GetLocalName | ( | ) | const |
Returns the local part of this name.
std::string berry::QualifiedName::GetQualifier | ( | ) | const |
Returns the qualifier part for this qualified name, or null
if none.
null
std::size_t berry::QualifiedName::HashCode | ( | ) | const |
bool berry::QualifiedName::operator< | ( | const QualifiedName & | qName | ) | const |
bool berry::QualifiedName::operator== | ( | const QualifiedName & | qName | ) | const |
Returns whether this qualified name is equivalent to the given object.
Qualified names are equal if and only if they have the same qualified parts and local parts. Qualified names are not equal to objects other than qualified names.
qName | the object to compare to |
true
if these are equivalent qualified names, and false
otherwise std::string berry::QualifiedName::ToString | ( | ) |
Converts this qualified name into a string, suitable for debug purposes only.
std::string berry::QualifiedName::localName |
Local name part.
Definition at line 45 of file berryQualifiedName.h.
std::string berry::QualifiedName::qualifier |
Qualifier part (potentially null
).
Definition at line 41 of file berryQualifiedName.h.