LibreOffice
LibreOffice 5.3 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  * 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 
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 
67  void * pVal1, struct _typelib_TypeDescription * pVal1TypeDescr,
68  void * pVal2, struct _typelib_TypeDescription * pVal2TypeDescr,
83  void * pVal1, struct _typelib_TypeDescriptionReference * pVal1Type,
84  void * pVal2, struct _typelib_TypeDescriptionReference * pVal2Type,
87 
97 CPPU_DLLPUBLIC void SAL_CALL uno_copyData(
98  void * pDest, void * pSource,
99  struct _typelib_TypeDescription * pTypeDescr, uno_AcquireFunc acquire )
110 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyData(
111  void * pDest, void * pSource,
114 
124  void * pDest, void * pSource,
125  struct _typelib_TypeDescription * pTypeDescr, struct _uno_Mapping * mapping )
136  void * pDest, void * pSource,
137  struct _typelib_TypeDescriptionReference * pType, struct _uno_Mapping * mapping )
139 
147 CPPU_DLLPUBLIC void SAL_CALL uno_destructData(
148  void * pValue, struct _typelib_TypeDescription * pTypeDescr, uno_ReleaseFunc release )
158  void * pValue, struct _typelib_TypeDescriptionReference * pType, uno_ReleaseFunc release )
160 
166 CPPU_DLLPUBLIC void SAL_CALL uno_constructData(
167  void * pMem, struct _typelib_TypeDescription * pTypeDescr )
175  void * pMem, struct _typelib_TypeDescriptionReference * pType )
177 
197  void * pDest, struct _typelib_TypeDescription * pDestTypeDescr,
198  void * pSource, struct _typelib_TypeDescription * pSourceTypeDescr,
220  void * pDest, struct _typelib_TypeDescriptionReference * pDestType,
221  void * pSource, struct _typelib_TypeDescriptionReference * pSourceType,
224 
240  struct _typelib_TypeDescriptionReference * pAssignable,
241  void * pFrom, struct _typelib_TypeDescriptionReference * pFromType,
244 
245 #ifdef __cplusplus
246 }
247 #endif
248 
249 #endif
250 
251 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Holds a weak reference to a type description.
Definition: typedescription.h:40
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.
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:10
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:52
Type description of an interface.
Definition: typedescription.h:370
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition: mapping.h:68
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.
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
CPPU_DLLPUBLIC void uno_constructData(void *pMem, struct _typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
Default constructs a value.
unsigned char sal_Bool
Definition: types.h:48
Full type description of a type.
Definition: typedescription.h:71
void *(* uno_QueryInterfaceFunc)(void *pInterface, struct _typelib_TypeDescriptionReference *pType)
Generic function pointer declaration to query for an interface.
Definition: data.h:40
uno_ReleaseMappingFunc release
Releases mapping.
Definition: mapping.h:72
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.
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 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.
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:46
CPPU_DLLPUBLIC void uno_type_constructData(void *pMem, struct _typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
Default constructs a value.
This is the binary specification of a mapping.
Definition: mapping.h:64
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!
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:370
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_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.
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_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.