Difference between revisions of "Uno/Cpp/Spec/Shield Helpers"
From Apache OpenOffice Wiki
m (→Shield Helpers: Added header name.) |
m (Improved layout.) |
||
Line 1: | Line 1: | ||
− | + | State: draft <br> | |
− | + | Type: specification <br> | |
− | + | ||
− | == Shield Helpers == | + | ==Shield Helpers== |
− | + | ===Feature=== | |
+ | Functions for easily mapping objects to or from the thread-safe C++ environment. | ||
− | + | ===API=== | |
+ | <pre> | ||
+ | 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=== | |
− | + | * [[Uno/Cpp/Spec/Environment Stack]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
[[Category:Uno:Cpp:Spec]] | [[Category:Uno:Cpp:Spec]] | ||
+ | [[Category:Uno:draft]] |
Revision as of 08:46, 4 August 2006
State: draft
Type: specification
Shield Helpers
Feature
Functions for easily mapping objects to or from the thread-safe C++ environment.
API
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)