| Type | info |
| Title | C++-UNO object implementation helpers with variable number of interfaces |
| Posted by | [EMAIL PROTECTED] |
| Affected | -, |
| Effective from | cws dbo510 |
Summary
header file: comphelper/implbase_var.hxx
[namespace comphelper]
+ template <typename Ifc1, ..., typename Ifc<N> > class ImplHelper<N>;
+ template <typename Ifc1, ..., typename Ifc<N> > class WeakImplHelper<N>;
+ template <typename Ifc1, ..., typename Ifc<N> > class WeakComponentImplHelper<N>;
+ template <typename BaseClass, typename Ifc1, ..., typename Ifc<N> > class ImplInheritanceHelper<N>;
Description
/** This header generates the following template classes with a
variable number
of interfaces:
template <typename Ifc1, ..., typename Ifc<N> > class ImplHelper<N>;
template <typename Ifc1, ..., typename Ifc<N> > class
WeakImplHelper<N>;
template <typename Ifc1, ..., typename Ifc<N> > class
WeakComponentImplHelper<N>;
template <typename BaseClass, typename Ifc1, ..., typename Ifc<N>
> class ImplInheritanceHelper<N>;
as already present in headers cppuhelper/implbase<1-12>.hxx and
cppuhelper/compbase<1-12>.hxx.
<N> denotes the number of interface types passed as template
arguments.
Don't use this header for interface numbers up to 12;
always use the existing cppuhelper/(impl|comp)base<1-12>.hxx headers
for this purpose, which eases debugging.
Including this header requires a little discipline, because it has no
include guards. Please use the following external include guard rule
where <N> is the number of interface types:
#if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_<N>)
#define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_<N>
#define COMPHELPER_IMPLBASE_INTERFACE_NUMBER <N>
#include "comphelper/implbase_var.hxx"
#endif
Additionally you can
#define COMPHELPER_IMPLBASE_MAX_CTOR_ARGS <N>
to control the maximum number of templated ctor arguments for the
ImplInheritanceHelper<N> classes.
The default is a maximum of 6 arguments.
*/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
