Difference between revisions of "Uno/Cpp/Spec/Shield Helpers"

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
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 com::sun::star::uno::Reference<T> shield(T * pT)
+
 
   template<class T> inline com::sun::star::uno::Reference<T> shield(com::sun::star::uno::Reference<T> const & rT)
+
   namespace cssu = com::sun::star::uno;
   template<class T> inline com::sun::star::uno::Reference<T> unshield(T * pT)
+
 
   template<class T> inline com::sun::star::uno::Reference<T> unshield(com::sun::star::uno::Reference<T> const & rT)
+
   template<class T> inline T * shield (T * pT);
  com::sun::star::uno::Any shieldAny  (com::sun::star::uno::Any const & any)
+
   template<class T> inline T * unshield(T * pT);
   com::sun::star::uno::Any unshieldAny(com::sun::star::uno::Any const & any)
+
   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)

Dependencies

Personal tools