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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Improved layout.)
m (API: Fixed "code" tag ...)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
State: draft <br>
+
Type: Specification State: Evolving  Availability: URE 1.3 (SRC680_m212)
Type:  specification <br>
+
  
==Shield Helpers==
+
==Feature==
 
+
===Feature===
+
 
Functions for easily mapping objects to or from the thread-safe C++ environment.
 
Functions for easily mapping objects to or from the thread-safe C++ environment.
  
===API===
+
==API==
<pre>
+
<source lang="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)
 
  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)
 
  com::sun::star::uno::Any shieldAny  (com::sun::star::uno::Any const & any)
 
  com::sun::star::uno::Any unshieldAny(com::sun::star::uno::Any const & any)
 
</pre>
 
  
===Dependencies===
+
  namespace cssu = com::sun::star::uno;
* [[Uno/Cpp/Spec/Environment Stack]]
+
  
 +
  template<class T> inline T * cppu::shield  (T * pT);
 +
  template<class T> inline T * cppu::unshield(T * pT);
 +
  inline void cppu::shieldAny  (cssu::Any const & any, cssu::Any * res);
 +
  inline void cppu::unshieldAny(cssu::Any const & any, cssu::Any * res);
 +
</source>
 +
 +
==Dependencies==
 +
* [[Uno/Cpp/Spec/Environment Stack]]
  
[[Category:Uno:Cpp:Spec]]
+
[[Category:Evolving]]
[[Category:Uno:draft]]
+
[[Category:Spec]]
 +
[[Category:Uno]]
 +
[[Category:Uno:Cpp]]
 +
[[Category:Multi-Threading]]

Latest revision as of 21:02, 23 March 2008

Type: Specification State: Evolving Availability: URE 1.3 (SRC680_m212)

Feature

Functions for easily mapping objects to or from the thread-safe C++ environment.

API

cppu/Shield.hxx
 
  namespace cssu = com::sun::star::uno;
 
  template<class T> inline T * cppu::shield  (T * pT);
  template<class T> inline T * cppu::unshield(T * pT);
  inline void cppu::shieldAny  (cssu::Any const & any, cssu::Any * res);
  inline void cppu::unshieldAny(cssu::Any const & any, cssu::Any * res);

Dependencies

Personal tools