24 #ifndef INCLUDED_CPPU_MAP_HXX 25 #define INCLUDED_CPPU_MAP_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 cpp_release(void *pCppI)
Function to release a C++ interface.
Definition: genfunc.hxx:50
CPPU_DLLPUBLIC void uno_type_any_constructAndConvert(uno_Any *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Constructs an any with a given value and converts/ maps interfaces.
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.
Definition: Map.hxx:94
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.
Definition: Map.hxx:74
T * mapIn(T *pT, css::uno::Environment const &outerEnv)
Maps an object from an outer Environment to the current, returns mapped object.
Definition: Map.hxx:58
Get the css::uno::Type instance representing a certain UNO type.
Definition: unotype.hxx:51
CPPU_DLLPUBLIC void uno_any_destruct(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs an any.
Definition: Enterable.hxx:30
T * mapOut(T *pT, css::uno::Environment const &outerEnv)
Helpers for mapping objects relative to the current environment.
Definition: Map.hxx:43