info/CWS dba32b : -

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

info/CWS dba32b : -

frank.schoenheit


          Type: info
         Title: -
     Posted by: [hidden email]
      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 [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]