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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
(temporary saved)
 
m (API: Fixed "code" tag ...)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
author[[User:Kr|Kr]] <br>
+
Type: Specification State: Evolving  Availability: URE 1.3 (SRC680_m212)
version: {{REVISIONID}} <br>
+
state:  draft <br>
+
created: 02/28/2006 <br>
+
changed: 02/28/2006 <br>
+
type:   specification <br>
+
  
 +
==Feature==
 +
Functions for easily mapping objects to or from the thread-safe C++ environment.
  
== [[C++ Runtime]] ==
+
==API==
 +
<source lang="cpp">
 +
cppu/Shield.hxx
  
===Shield Helpers===
+
  namespace cssu = com::sun::star::uno;
  
;Feature: Functions for easily mapping objects out or into the current environment.
+
  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>
  
;Rationale:
+
==Dependencies==
 +
* [[Uno/Cpp/Spec/Environment Stack]]
  
;API
+
[[Category:Evolving]]
: template<class T> inline com::sun::star::uno::Reference<T> shield(T * pT)
+
[[Category:Spec]]
: template<class T> inline com::sun::star::uno::Reference<T> shield(com::sun::star::uno::Reference<T> const & rT)
+
[[Category:Uno]]
: template<class T> inline com::sun::star::uno::Reference<T> unshield(T * pT)
+
[[Category:Uno:Cpp]]
: template<class T> inline com::sun::star::uno::Reference<T> unshield(com::sun::star::uno::Reference<T> const & rT)
+
[[Category:Multi-Threading]]
: inline com::sun::star::uno::Any shieldAny  (com::sun::star::uno::Any const & any)
+
: inline com::sun::star::uno::Any unshieldAny(com::sun::star::uno::Any const & any)
+
 
+
;Dependencies: Binary UNO / Environment Stacks
+
 
+
;Compatibility Issues: None.
+

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