is a class which controls lifetime of a UNO component via ->XComponent::dispose
More...
#include <sharedunocomponent.hxx>
is a class which controls lifetime of a UNO component via ->XComponent::dispose
You'll usually never use this class directly, but only as parameter for a ->SharedUNOComponent class.
Definition at line 44 of file sharedunocomponent.hxx.
◆ DisposableComponent() [1/2]
utl::DisposableComponent::DisposableComponent |
( |
const css::uno::Reference< css::uno::XInterface > & |
_rxComponent | ) |
|
constructs a ->DisposableComponent instance
- Parameters
-
_rxComponent | the component whose life time should be controlled by the instance. Must not be <NULL>. |
◆ ~DisposableComponent()
utl::DisposableComponent::~DisposableComponent |
( |
| ) |
|
disposes the component represented by the instance
The component is queried for ->XComponent(which must be supported), and ->XComponent::dispose is invoked. A failure of this invocation (e.g. a thrown exception) is silenced in release builds, and reported in debug builds.
Definition at line 51 of file sharedunocomponent.cxx.
References Exception, and TOOLS_WARN_EXCEPTION.
◆ DisposableComponent() [2/2]
◆ operator=()
◆ m_xComponent
css::uno::Reference< css::lang::XComponent > utl::DisposableComponent::m_xComponent |
|
private |
The documentation for this class was generated from the following files: