Difference between revisions of "Uno/Cpp/Spec/Map Helpers"
From Apache OpenOffice Wiki
(Updated state.) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Type: | + | Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212) |
==Feature== | ==Feature== | ||
Line 11: | Line 11: | ||
// maps object pT from current to "outerEnv", returns mapped object. | // maps object pT from current to "outerEnv", returns mapped object. | ||
− | template<class T> inline T * mapOut(T * pT, cssu::Environment const & outerEnv) | + | template<class T> inline T * cppu::mapOut(T * pT, cssu::Environment const & outerEnv); |
// maps object pT from "outerEnv" to current, returns mapped object. | // maps object pT from "outerEnv" to current, returns mapped object. | ||
− | template<class T> inline T * mapIn(T * pT, cssu::Environment const & outerEnv) | + | template<class T> inline T * cppu::mapIn(T * pT, cssu::Environment const & outerEnv); |
− | inline void mapOutAny(cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv) | + | inline void cppu::mapOutAny(cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv); |
− | inline void mapInAny (cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv) | + | inline void cppu::mapInAny (cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv); |
</code> | </code> | ||
Line 24: | Line 24: | ||
− | [[Category: | + | [[Category:Evolving]] |
− | [[Category:Uno: | + | [[Category:Spec]] |
+ | [[Category:Uno]] | ||
+ | [[Category:Uno:Cpp]] |
Latest revision as of 10:07, 23 May 2007
Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212)
Feature
Functions for easily mapping objects to or from the current to another environment.
API
[cpp]
cppu/Map.hxx
namespace cssu = com::sun::star::uno;
// maps object pT from current to "outerEnv", returns mapped object. template<class T> inline T * cppu::mapOut(T * pT, cssu::Environment const & outerEnv);
// maps object pT from "outerEnv" to current, returns mapped object. template<class T> inline T * cppu::mapIn(T * pT, cssu::Environment const & outerEnv);
inline void cppu::mapOutAny(cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv); inline void cppu::mapInAny (cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv);