| Type | info |
| Title | unwrapping Sequence<Any> arguments |
| Posted by | [EMAIL PROTECTED] |
| Affected | -, |
| Effective from | cws dbo510 |
Summary
header file: comphelper/unwrapargs.hxx
[namespace comphelper]
+ template <typename T0, typename T1, ...> inline void unwrapArgs( css::uno::Sequence<uno::Any> const& seq, T0 & v0, T1 & v1, ..., css::uno::Reference<css::uno::XInterface> const& xErrorContext = css::uno::Reference<css::uno::XInterface>() );
Description
/** The following preprocessor repetitions generate functions like
<pre>
template <typename T0, typename T1, ...>
inline void unwrapArgs(
css::uno::Sequence<uno::Any> const& seq,
T0 & v0, T1 & v1, ...,
css::uno::Reference<css::uno::XInterface> const&
xErrorContext =
css::uno::Reference<css::uno::XInterface>() );
</pre>
(full namespace qualification ::com::sun::star has been omitted
for brevity)
which unwraps the passed sequence's elements, assigning them to the
referenced values. Specify optional arguments as boost::optional<T>.
If the length of the sequence is greater than the count of arguments,
then the latter sequence elements are ignored.
If too few arguments are given in the sequence and a missing
argument is
no boost::optional<T>, then an lang::IllegalArgumentException is
thrown
with the specified xErrorContext (defaults to null-ref).
The maximum number of service declarations can be set by defining
COMPHELPER_UNWRAPARGS_MAX_ARGS; its default is 12.
*/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
