Difference between revisions of "Uno/Binary/Spec/Identity Mapping"

From Apache OpenOffice Wiki
< Uno‎ | Binary
Jump to: navigation, search
m
m (Improved layout. Splitted categories.)
Line 1: Line 1:
version: {{REVISIONID}} <br>
+
State: final Type: Specification
state:  final         <br>
 
type:   specification  <br>
 
  
== Identity Mapping ==
+
==Identity Mapping==
  
; Feature
+
===Feature===
: The Binary UNO runtime currently returns no mapping, in case of a identity request <code>"A"</code> -> <code>"A"</code>. The UNO runtime should return an indentity-mapping in case of an identity request.
+
The Binary UNO runtime currently returns no mapping, in case of a identity request <code>"A"</code> -> <code>"A"</code>. The UNO runtime should return an indentity-mapping in case of an identity request.
  
; Rationale  
+
===Rationale===
: Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code.
+
Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code.
  
; API: None.
+
===API===
 +
The UNO runtime function
 +
<code>void SAL_CALL uno_getMapping(uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose) SAL_THROW_EXTERN_C();</code>
 +
returns an identity-mapping, in case pFrom == pTo, instead of NULL.
  
; Compatibility Issues
 
: The UNO runtime function
 
  
: <code>void SAL_CALL uno_getMapping(uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose) SAL_THROW_EXTERN_C();</code>
+
[[Category:Spec]]
 
+
[[Category:Uno]]
: returns an identity-mapping, in case pFrom == pTo, instead of NULL.
+
[[Category:Uno:Binary]]
 
 
; Dependencies: None.
 
 
 
[[Category:Uno:Binary:Spec]]
 

Revision as of 15:20, 28 November 2006

State: final Type: Specification

Identity Mapping

Feature

The Binary UNO runtime currently returns no mapping, in case of a identity request "A" -> "A". The UNO runtime should return an indentity-mapping in case of an identity request.

Rationale

Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code.

API

The UNO runtime function

void SAL_CALL uno_getMapping(uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose) SAL_THROW_EXTERN_C();

returns an identity-mapping, in case pFrom == pTo, instead of NULL.

Personal tools