Difference between revisions of "Uno/Cpp/Spec/Shield Helpers"
From Apache OpenOffice Wiki
m (Fixed section indentation.) |
(→API: Updated API.) |
||
Line 7: | Line 7: | ||
<code>[cpp] | <code>[cpp] | ||
cppu/Shield.hxx | cppu/Shield.hxx | ||
− | + | ||
− | template<class T> inline | + | namespace cssu = com::sun::star::uno; |
− | template<class T> inline | + | |
− | + | template<class T> inline T * shield (T * pT); | |
− | + | template<class T> inline T * unshield(T * pT); | |
− | + | inline void shieldAny (cssu::Any const & any, cssu::Any * res) | |
+ | inline void unshieldAny(cssu::Any const & any, cssu::Any * res) | ||
</code> | </code> | ||
Revision as of 14:44, 29 September 2006
Type: specification State: draft
Feature
Functions for easily mapping objects to or from the thread-safe C++ environment.
API
[cpp]
cppu/Shield.hxx
namespace cssu = com::sun::star::uno;
template<class T> inline T * shield (T * pT); template<class T> inline T * unshield(T * pT); inline void shieldAny (cssu::Any const & any, cssu::Any * res) inline void unshieldAny(cssu::Any const & any, cssu::Any * res)