LibreOffice: uno/data.h Source File

LibreOffice LibreOffice 4.4 SDK C/C++ API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19 #ifndef INCLUDED_UNO_DATA_H
20 #define INCLUDED_UNO_DATA_H
21
22 #include <cppu/cppudllapi.h>
23
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28
29 struct _typelib_TypeDescriptionReference;
30 struct _typelib_TypeDescription;
31 struct _typelib_InterfaceTypeDescription;
32 struct _uno_Mapping;
33
40 typedef void * (SAL_CALL * uno_QueryInterfaceFunc)(
41 void * pInterface, struct _typelib_TypeDescriptionReference * pType );
46 typedef void (SAL_CALL * uno_AcquireFunc)(
47 void * pInterface );
52 typedef void (SAL_CALL * uno_ReleaseFunc)(
53 void * pInterface );
54
66 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_equalData(
67 void * pVal1, struct _typelib_TypeDescription * pVal1TypeDescr,
68 void * pVal2, struct _typelib_TypeDescription * pVal2TypeDescr,
69 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
70 SAL_THROW_EXTERN_C();
82 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_equalData(
83 void * pVal1, struct _typelib_TypeDescriptionReference * pVal1Type,
84 void * pVal2, struct _typelib_TypeDescriptionReference * pVal2Type,
85 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
86 SAL_THROW_EXTERN_C();
87
97 CPPU_DLLPUBLIC void SAL_CALL uno_copyData(
98 void * pDest, void * pSource,
99 struct _typelib_TypeDescription * pTypeDescr, uno_AcquireFunc acquire )
100 SAL_THROW_EXTERN_C();
110 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyData(
111 void * pDest, void * pSource,
112 struct _typelib_TypeDescriptionReference * pType, uno_AcquireFunc acquire )
113 SAL_THROW_EXTERN_C();
114
123 CPPU_DLLPUBLIC void SAL_CALL uno_copyAndConvertData(
124 void * pDest, void * pSource,
125 struct _typelib_TypeDescription * pTypeDescr, struct _uno_Mapping * mapping )
126 SAL_THROW_EXTERN_C();
135 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyAndConvertData(
136 void * pDest, void * pSource,
137 struct _typelib_TypeDescriptionReference * pType, struct _uno_Mapping * mapping )
138 SAL_THROW_EXTERN_C();
139
147 CPPU_DLLPUBLIC void SAL_CALL uno_destructData(
148 void * pValue, struct _typelib_TypeDescription * pTypeDescr, uno_ReleaseFunc release )
149 SAL_THROW_EXTERN_C();
157 CPPU_DLLPUBLIC void SAL_CALL uno_type_destructData(
158 void * pValue, struct _typelib_TypeDescriptionReference * pType, uno_ReleaseFunc release )
159 SAL_THROW_EXTERN_C();
160
166 CPPU_DLLPUBLIC void SAL_CALL uno_constructData(
167 void * pMem, struct _typelib_TypeDescription * pTypeDescr )
168 SAL_THROW_EXTERN_C();
174 CPPU_DLLPUBLIC void SAL_CALL uno_type_constructData(
175 void * pMem, struct _typelib_TypeDescriptionReference * pType )
176 SAL_THROW_EXTERN_C();
177
196 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_assignData(
197 void * pDest, struct _typelib_TypeDescription * pDestTypeDescr,
198 void * pSource, struct _typelib_TypeDescription * pSourceTypeDescr,
199 uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
200 SAL_THROW_EXTERN_C();
219 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_assignData(
220 void * pDest, struct _typelib_TypeDescriptionReference * pDestType,
221 void * pSource, struct _typelib_TypeDescriptionReference * pSourceType,
222 uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
223 SAL_THROW_EXTERN_C();
224
239 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_isAssignableFromData(
240 struct _typelib_TypeDescriptionReference * pAssignable,
241 void * pFrom, struct _typelib_TypeDescriptionReference * pFromType,
242 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
243 SAL_THROW_EXTERN_C();
244
245 #ifdef __cplusplus
246 }
247 #endif
248
249 #endif
250
251 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
_uno_Mapping::release
uno_ReleaseMappingFunc release
Releases mapping.
Definition: mapping.h:72
sal_Bool
unsigned char sal_Bool
Definition: types.h:48
uno_constructData
CPPU_DLLPUBLIC void uno_constructData(void *pMem, struct _typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
Default constructs a value.
CPPU_DLLPUBLIC
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:10
uno_type_assignData
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_destructData
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!
uno_ReleaseFunc
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:52
uno_type_constructData
CPPU_DLLPUBLIC void uno_type_constructData(void *pMem, struct _typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
Default constructs a value.
uno_equalData
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.
uno_copyAndConvertData
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.
uno_copyData
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.
_typelib_TypeDescriptionReference
Holds a weak reference to a type description.
Definition: typedescription.h:40
uno_type_destructData
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!
uno_QueryInterfaceFunc
void *(* uno_QueryInterfaceFunc)(void *pInterface, struct _typelib_TypeDescriptionReference *pType)
Generic function pointer declaration to query for an interface.
Definition: data.h:40
_uno_Mapping
This is the binary specification of a mapping.
Definition: mapping.h:64
uno_type_copyData
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.
_typelib_InterfaceTypeDescription
Type description of an interface.
Definition: typedescription.h:370
_typelib_TypeDescription
Full type description of a type.
Definition: typedescription.h:71
uno_type_equalData
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.
_uno_Mapping::acquire
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition: mapping.h:68
cppudllapi.h
uno_type_isAssignableFromData
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.
uno_type_copyAndConvertData
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.
cppu::queryInterface
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
SAL_THROW_EXTERN_C
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:354
uno_assignData
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.
uno_AcquireFunc
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:46