AlterOffice
AlterOffice 2026.2 SDK C/C++ API Reference
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;
38 
39 #if defined( _WIN32)
40 #pragma pack(pop)
41 #endif
42 
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 
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 
135  uno_Any * pValue, uno_ReleaseFunc release )
137 
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: */
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:314
CPPU_DLLPUBLIC void uno_any_destruct(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs an any.
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_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.
struct SAL_DLLPUBLIC_RTTI _uno_Any uno_Any
This is the binary specification of a UNO any.
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.
CPPU_DLLPUBLIC void uno_any_clear(uno_Any *pValue, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Sets value to void.
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.
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_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.
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:30
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:36
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:11
Holds a weak reference to a type description.
Definition: typedescription.h:25
struct _typelib_TypeDescription * pType
pointer to full typedescription; this value is only valid if the type is never swapped out
Definition: typedescription.h:42
Full type description of a type.
Definition: typedescription.h:56
This is the binary specification of a UNO any.
Definition: any2.h:25
void * pReserved
reserved space for storing value
Definition: any2.h:36
struct _typelib_TypeDescriptionReference * pType
type of value
Definition: any2.h:28
void * pData
pointer to value; this may point to pReserved and thus the uno_Any is not anytime mem-copyable!...
Definition: any2.h:33
This is the binary specification of a mapping.
Definition: mapping.h:49