AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
any2.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_ANY2_H
4 #define INCLUDED_UNO_ANY2_H
5 
6 #include "cppu/cppudllapi.h"
7 #include "uno/data.h"
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
14 #if defined( _WIN32)
15 #pragma pack(push, 8)
16 #endif
17 
20 struct _uno_Mapping;
21 
24 typedef struct SAL_DLLPUBLIC_RTTI _uno_Any
25 {
33  void * pData;
36  void * pReserved;
37 } uno_Any;
38 
39 #if defined( _WIN32)
40 #pragma pack(pop)
41 #endif
42 
54 CPPU_DLLPUBLIC void SAL_CALL uno_any_assign(
55  uno_Any * pDest, void * pSource,
56  struct _typelib_TypeDescription * pTypeDescr,
57  uno_AcquireFunc acquire, uno_ReleaseFunc release )
71  uno_Any * pDest, void * pSource,
73  uno_AcquireFunc acquire, uno_ReleaseFunc release )
75 
84 CPPU_DLLPUBLIC void SAL_CALL uno_any_construct(
85  uno_Any * pDest, void * pSource,
86  struct _typelib_TypeDescription * pTypeDescr,
87  uno_AcquireFunc acquire )
98  uno_Any * pDest, void * pSource,
100  uno_AcquireFunc acquire )
102 
111  uno_Any * pDest, void * pSource,
112  struct _typelib_TypeDescription * pTypeDescr,
113  struct _uno_Mapping * mapping )
123  uno_Any * pDest, void * pSource,
125  struct _uno_Mapping * mapping )
127 
134 CPPU_DLLPUBLIC void SAL_CALL uno_any_destruct(
135  uno_Any * pValue, uno_ReleaseFunc release )
137 
144 CPPU_DLLPUBLIC void SAL_CALL uno_any_clear(
145  uno_Any * pValue, uno_ReleaseFunc release )
147 
148 #ifdef __cplusplus
149 }
150 #endif
151 
152 #endif
153 
154 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Holds a weak reference to a type description.
Definition: typedescription.h:24
void * pData
pointer to value; this may point to pReserved and thus the uno_Any is not anytime mem-copyable! You m...
Definition: any2.h:33
struct SAL_DLLPUBLIC_RTTI _uno_Any uno_Any
This is the binary specification of a UNO any.
CPPU_DLLPUBLIC void uno_type_any_constructAndConvert(uno_Any *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Constructs an any with a given value and converts/ maps interfaces.
CPPU_DLLPUBLIC void uno_any_destruct(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs an any.
struct _typelib_TypeDescriptionReference * pType
type of value
Definition: any2.h:28
struct _typelib_TypeDescription * pType
pointer to full typedescription; this value is only valid if the type is never swapped out ...
Definition: typedescription.h:42
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
void * pReserved
reserved space for storing value
Definition: any2.h:36
This is the binary specification of a UNO any.
Definition: any2.h:24
CPPU_DLLPUBLIC void uno_type_any_construct(uno_Any *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Constructs an any with a given value.
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:30
CPPU_DLLPUBLIC void uno_any_assign(uno_Any *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assign an any with a 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
CPPU_DLLPUBLIC void uno_any_constructAndConvert(uno_Any *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Constructs an any with a given value and converts/ maps interfaces.
CPPU_DLLPUBLIC void uno_any_construct(uno_Any *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Constructs an any with a given value.
CPPU_DLLPUBLIC void uno_any_clear(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Sets value to void.
CPPU_DLLPUBLIC void uno_type_any_assign(uno_Any *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assign an any with a given value.
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:11