Uno/Cpp/Spec/Map Helpers

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Revision as of 14:49, 29 September 2006 by Kr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Type: specification State: draft

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 * mapOut(T * pT, cssu::Environment const & outerEnv)
 // maps object pT from "outerEnv" to current, returns mapped object.
 template<class T> inline T * mapIn(T * pT, cssu::Environment const & outerEnv)
 inline void 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)

Dependencies

Personal tools