LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
|
A descriptor as part of a UNO URL (connection descriptor or protocol descriptor). More...
#include <unourl.hxx>
Public Member Functions | |
UnoUrlDescriptor (rtl::OUString const &rDescriptor) | |
Construct a descriptor from a string representation. More... | |
UnoUrlDescriptor (UnoUrlDescriptor const &rOther) | |
~UnoUrlDescriptor () | |
UnoUrlDescriptor & | operator= (UnoUrlDescriptor const &rOther) |
rtl::OUString const & | getDescriptor () const |
Return the string representation of the descriptor. More... | |
rtl::OUString const & | getName () const |
Return the name component of the descriptor. More... | |
bool | hasParameter (rtl::OUString const &rKey) const |
Test whether the parameters contain a key. More... | |
rtl::OUString | getParameter (rtl::OUString const &rKey) const |
Return the parameter value for a key. More... | |
A descriptor as part of a UNO URL (connection descriptor or protocol descriptor).
Such a descriptor can also be useful outside the context of a full UNO URL. For example, some functions take a string representing a connection or protocol descriptor as input, and can use this class to parse the string.
|
explicit |
Construct a descriptor from a string representation.
rDescriptor | The string representation of a descriptor. |
rtl::MalformedUriException | Thrown when the given string representation is invalid. |
cppu::UnoUrlDescriptor::UnoUrlDescriptor | ( | UnoUrlDescriptor const & | rOther | ) |
cppu::UnoUrlDescriptor::~UnoUrlDescriptor | ( | ) |
rtl::OUString const& cppu::UnoUrlDescriptor::getDescriptor | ( | ) | const |
Return the string representation of the descriptor.
rtl::OUString const& cppu::UnoUrlDescriptor::getName | ( | ) | const |
Return the name component of the descriptor.
rtl::OUString cppu::UnoUrlDescriptor::getParameter | ( | rtl::OUString const & | rKey | ) | const |
Return the parameter value for a key.
rKey | A (case insensitive) key. |
bool cppu::UnoUrlDescriptor::hasParameter | ( | rtl::OUString const & | rKey | ) | const |
Test whether the parameters contain a key.
rKey | A (case insensitive) key. |
UnoUrlDescriptor& cppu::UnoUrlDescriptor::operator= | ( | UnoUrlDescriptor const & | rOther | ) |