|
LibreOffice Module cppuhelper (master) 1
|
A descriptor as part of a UNO URL (connection descriptor or protocol descriptor). More...
#include <unourl.hxx>
Classes | |
| class | Impl |
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... | |
Private Attributes | |
| Impl * | m_pImpl |
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.
Definition at line 45 of file unourl.hxx.
|
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. |
| UnoUrlDescriptor::UnoUrlDescriptor | ( | UnoUrlDescriptor const & | rOther | ) |
Definition at line 132 of file unourl.cxx.
| UnoUrlDescriptor::~UnoUrlDescriptor | ( | ) |
Definition at line 136 of file unourl.cxx.
References m_pImpl.
| OUString const & UnoUrlDescriptor::getDescriptor | ( | ) | const |
Return the string representation of the descriptor.
Definition at line 152 of file unourl.cxx.
References cppu::UnoUrlDescriptor::Impl::m_aDescriptor, and m_pImpl.
| OUString const & UnoUrlDescriptor::getName | ( | ) | const |
Return the name component of the descriptor.
Definition at line 157 of file unourl.cxx.
References cppu::UnoUrlDescriptor::Impl::m_aName, and m_pImpl.
| OUString UnoUrlDescriptor::getParameter | ( | rtl::OUString const & | rKey | ) | const |
Return the parameter value for a key.
| rKey | A (case insensitive) key. |
Definition at line 168 of file unourl.cxx.
References cppu::UnoUrlDescriptor::Impl::m_aParameters, and m_pImpl.
| bool UnoUrlDescriptor::hasParameter | ( | rtl::OUString const & | rKey | ) | const |
Test whether the parameters contain a key.
| rKey | A (case insensitive) key. |
Definition at line 162 of file unourl.cxx.
References cppu::UnoUrlDescriptor::Impl::m_aParameters, and m_pImpl.
| UnoUrlDescriptor & UnoUrlDescriptor::operator= | ( | UnoUrlDescriptor const & | rOther | ) |
Definition at line 141 of file unourl.cxx.
References cppu::UnoUrlDescriptor::Impl::clone(), and m_pImpl.
|
private |
Definition at line 105 of file unourl.hxx.
Referenced by getDescriptor(), getName(), getParameter(), hasParameter(), operator=(), and ~UnoUrlDescriptor().