AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
data.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_UNO_DATA_H
4 #define INCLUDED_UNO_DATA_H
5 
6 #include "cppu/cppudllapi.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
16 struct _uno_Mapping;
17 
24 typedef void * (SAL_CALL * uno_QueryInterfaceFunc)(
25  void * pInterface, struct _typelib_TypeDescriptionReference * pType );
30 typedef void (SAL_CALL * uno_AcquireFunc)(
31  void * pInterface );
36 typedef void (SAL_CALL * uno_ReleaseFunc)(
37  void * pInterface );
38 
51  void * pVal1, struct _typelib_TypeDescription * pVal1TypeDescr,
52  void * pVal2, struct _typelib_TypeDescription * pVal2TypeDescr,
67  void * pVal1, struct _typelib_TypeDescriptionReference * pVal1Type,
68  void * pVal2, struct _typelib_TypeDescriptionReference * pVal2Type,
71 
81 CPPU_DLLPUBLIC void SAL_CALL uno_copyData(
82  void * pDest, void * pSource,
83  struct _typelib_TypeDescription * pTypeDescr, uno_AcquireFunc acquire )
94 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyData(
95  void * pDest, void * pSource,
98 
108  void * pDest, void * pSource,
109  struct _typelib_TypeDescription * pTypeDescr, struct _uno_Mapping * mapping )
120  void * pDest, void * pSource,
121  struct _typelib_TypeDescriptionReference * pType, struct _uno_Mapping * mapping )
123 
131 CPPU_DLLPUBLIC void SAL_CALL uno_destructData(
132  void * pValue, struct _typelib_TypeDescription * pTypeDescr, uno_ReleaseFunc release )
142  void * pValue, struct _typelib_TypeDescriptionReference * pType, uno_ReleaseFunc release )
144 
150 CPPU_DLLPUBLIC void SAL_CALL uno_constructData(
151  void * pMem, struct _typelib_TypeDescription * pTypeDescr )
159  void * pMem, struct _typelib_TypeDescriptionReference * pType )
161 
181  void * pDest, struct _typelib_TypeDescription * pDestTypeDescr,
182  void * pSource, struct _typelib_TypeDescription * pSourceTypeDescr,
204  void * pDest, struct _typelib_TypeDescriptionReference * pDestType,
205  void * pSource, struct _typelib_TypeDescriptionReference * pSourceType,
208 
224  struct _typelib_TypeDescriptionReference * pAssignable,
225  void * pFrom, struct _typelib_TypeDescriptionReference * pFromType,
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #endif
234 
235 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CPPU_DLLPUBLIC sal_Bool uno_type_equalData(void *pVal1, struct _typelib_TypeDescriptionReference *pVal1Type, void *pVal2, struct _typelib_TypeDescriptionReference *pVal2Type, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests if two values are equal.
CPPU_DLLPUBLIC sal_Bool uno_equalData(void *pVal1, struct _typelib_TypeDescription *pVal1TypeDescr, void *pVal2, struct _typelib_TypeDescription *pVal2TypeDescr, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests if two values are equal.
CPPU_DLLPUBLIC sal_Bool uno_type_isAssignableFromData(struct _typelib_TypeDescriptionReference *pAssignable, void *pFrom, struct _typelib_TypeDescriptionReference *pFromType, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests whether a value of given type is assignable from given value.
Holds a weak reference to a type description.
Definition: typedescription.h:24
unsigned char sal_Bool
Definition: types.h:18
CPPU_DLLPUBLIC void uno_copyData(void *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
CPPU_DLLPUBLIC void uno_constructData(void *pMem, struct _typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
Default constructs a value.
CPPU_DLLPUBLIC void uno_copyAndConvertData(void *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
Type description of an interface.
Definition: typedescription.h:354
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition: mapping.h:52
CPPU_DLLPUBLIC void uno_type_copyAndConvertData(void *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
void *(* uno_QueryInterfaceFunc)(void *pInterface, struct _typelib_TypeDescriptionReference *pType)
Generic function pointer declaration to query for an interface.
Definition: data.h:24
CPPU_DLLPUBLIC void uno_type_destructData(void *pValue, struct _typelib_TypeDescriptionReference *pType, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs a given value; does NOT free its memory!
CPPU_DLLPUBLIC void SAL_THROW_EXTERN_C()
This method is called to wait for a reply of a previously sent request.
Full type description of a type.
Definition: typedescription.h:55
CPPU_DLLPUBLIC void uno_destructData(void *pValue, struct _typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs a given value; does NOT free its memory!
CPPU_DLLPUBLIC sal_Bool uno_type_assignData(void *pDest, struct _typelib_TypeDescriptionReference *pDestType, void *pSource, struct _typelib_TypeDescriptionReference *pSourceType, uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a destination value with a source value.
uno_ReleaseMappingFunc release
Releases mapping.
Definition: mapping.h:56
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:30
CPPU_DLLPUBLIC void uno_type_constructData(void *pMem, struct _typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
Default constructs a value.
CPPU_DLLPUBLIC void uno_type_copyData(void *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
This is the binary specification of a mapping.
Definition: mapping.h:48
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:36
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:11
CPPU_DLLPUBLIC sal_Bool uno_assignData(void *pDest, struct _typelib_TypeDescription *pDestTypeDescr, void *pSource, struct _typelib_TypeDescription *pSourceTypeDescr, uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a destination value with a source value.