24#ifndef INCLUDED_CPPU_MAP_HXX
25#define INCLUDED_CPPU_MAP_HXX
27#include "uno/mapping.hxx"
43 template<
class T>
inline T *
mapOut(T * pT, css::uno::Environment
const & outerEnv)
45 css::uno::Mapping curr2outer(css::uno::Environment::getCurrent(), outerEnv);
58 template<
class T>
inline T *
mapIn(T * pT, css::uno::Environment
const & outerEnv)
60 css::uno::Mapping outer2curr(outerEnv, css::uno::Environment::getCurrent());
74 inline void mapOutAny(css::uno::Any
const & any, css::uno::Any * res, css::uno::Environment
const & outerEnv)
76 css::uno::Mapping curr2outer(css::uno::Environment::getCurrent(), outerEnv);
81 const_cast<void *
>(
any.getValue()),
82 any.getValueTypeRef(),
94 inline void mapInAny(css::uno::Any
const & any, css::uno::Any * res, css::uno::Environment
const & outerEnv)
96 css::uno::Mapping outer2curr(outerEnv, css::uno::Environment::getCurrent());
101 const_cast<void *
>(
any.getValue()),
102 any.getValueTypeRef(),
void SAL_CALL uno_type_any_constructAndConvert(uno_Any *pDest, void *pSource, typelib_TypeDescriptionReference *pType, uno_Mapping *mapping) SAL_THROW_EXTERN_C()
void SAL_CALL uno_any_destruct(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Get the css::uno::Type instance representing a certain UNO type.
void mapOutAny(css::uno::Any const &any, css::uno::Any *res, css::uno::Environment const &outerEnv)
Maps an any from the current to an outer Environment, fills passed any.
T * mapIn(T *pT, css::uno::Environment const &outerEnv)
Maps an object from an outer Environment to the current, returns mapped object.
void mapInAny(css::uno::Any const &any, css::uno::Any *res, css::uno::Environment const &outerEnv)
Maps an any from an outer Environment to the current, fills passed any.
T * mapOut(T *pT, css::uno::Environment const &outerEnv)
Helpers for mapping objects relative to the current environment.