Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berry::QualifiedName Struct Reference

#include <berryQualifiedName.h>

Collaboration diagram for berry::QualifiedName:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QualifiedName()

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.

Parameters
qualifierthe qualifier string, or null
localNamethe local name string

Member Function Documentation

◆ GetLocalName()

std::string berry::QualifiedName::GetLocalName ( ) const

Returns the local part of this name.

Returns
the local name string

◆ GetQualifier()

std::string berry::QualifiedName::GetQualifier ( ) const

Returns the qualifier part for this qualified name, or null if none.

Returns
the qualifier string, or null

◆ HashCode()

std::size_t berry::QualifiedName::HashCode ( ) const

◆ operator<()

bool berry::QualifiedName::operator< ( const QualifiedName qName) const

◆ operator==()

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.

Parameters
qNamethe object to compare to
Returns
true if these are equivalent qualified names, and false otherwise

◆ ToString()

std::string berry::QualifiedName::ToString ( )

Converts this qualified name into a string, suitable for debug purposes only.

Member Data Documentation

◆ localName

std::string berry::QualifiedName::localName

Local name part.

Definition at line 45 of file berryQualifiedName.h.

◆ qualifier

std::string berry::QualifiedName::qualifier

Qualifier part (potentially null).

Definition at line 41 of file berryQualifiedName.h.


The documentation for this struct was generated from the following file: