Type: info
Title: -
Posted by: [email protected]
Affected: -
Effective from: CWS dba32b
CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/dba32b>
CWS status: new
*Summary*
--------
+ <comphelper/componentbase.hxx>
+ ::comphelper::ComponentBase
*Description*
-------------
::comphelper::ComponentBase is intended as base class for UNO
components, relieving them from some repeated tasks. In particular, it
manages your ::osl::Mutex and ::cppu::OBroadcastHelper which they're
likely to need, and offers helpers for checking the initialization
state (if desired) and the "disposed" state.
For instance, instantiating an ComponentMethodGuard at the beginning
of your UNO method will ensure that
- the method is not entered when the object is not yet initialized,
but is required
to be
- the method is not entered when the object is already disposed, as
indicated
by the BroadcastHelper
- the component's mutex is locked as long as the guard is alive (and not
explicitly cleared)
For details, see
http://svn.services.openoffice.org/ooo/cws/dba32b/comphelper/inc/comphelper/componentbase.hxx.
Send feedback to [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]