LibreOffice Module registry (master)  1
writer.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 
20 #ifndef INCLUDED_REGISTRY_WRITER_H
21 #define INCLUDED_REGISTRY_WRITER_H
22 
23 #include <registry/regdllapi.h>
24 #include <registry/types.hxx>
25 #include <registry/version.h>
26 
27 #include <rtl/ustring.h>
28 #include <sal/types.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
66  typereg_Version version, rtl_uString const * documentation,
67  rtl_uString const * fileName, RTTypeClass typeClass, sal_Bool published,
68  rtl_uString const * typeName, sal_uInt16 superTypeCount,
69  sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount)
71 
81 
98  void const * handle, sal_uInt16 index, rtl_uString const * typeName)
100 
128  void * handle, sal_uInt16 index, rtl_uString const * documentation,
129  rtl_uString const * fileName, RTFieldAccess flags, rtl_uString const * name,
130  rtl_uString const * typeName, RTValueType valueType,
131  RTConstValueUnion valueValue)
133 
159  void * handle, sal_uInt16 index, rtl_uString const * documentation,
160  RTMethodMode flags, rtl_uString const * name,
161  rtl_uString const * returnTypeName, sal_uInt16 parameterCount,
162  sal_uInt16 exceptionCount)
164 
188  void const * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex,
189  RTParamMode flags, rtl_uString const * name, rtl_uString const * typeName)
191 
211  void const * handle, sal_uInt16 methodIndex, sal_uInt16 exceptionIndex,
212  rtl_uString const * typeName)
214 
237  void * handle, sal_uInt16 index, rtl_uString const * documentation,
238  RTReferenceType sort, RTFieldAccess flags, rtl_uString const * typeName)
240 
253 REG_DLLPUBLIC void const * typereg_writer_getBlob(void * handle, sal_uInt32 * size)
255 
256 #ifdef __cplusplus
257 }
258 #endif
259 
260 #endif
261 
262 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RTParamMode
specifies the mode of a parameter.
Definition: types.hxx:269
RTReferenceType
specifies the type of a reference used in a service description.
Definition: types.hxx:297
REG_DLLPUBLIC void * typereg_writer_create(typereg_Version version, rtl_uString const *documentation, rtl_uString const *fileName, RTTypeClass typeClass, sal_Bool published, rtl_uString const *typeName, sal_uInt16 superTypeCount, sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount) SAL_THROW_EXTERN_C()
Creates a type writer working on a binary blob that represents a UNOIDL type.
Definition: reflwrit.cxx:1245
#define REG_DLLPUBLIC
Definition: regdllapi.h:28
REG_DLLPUBLIC sal_Bool typereg_writer_setFieldData(void *handle, sal_uInt16 index, rtl_uString const *documentation, rtl_uString const *fileName, RTFieldAccess flags, rtl_uString const *name, rtl_uString const *typeName, RTValueType valueType, RTConstValueUnion valueValue) SAL_THROW_EXTERN_C()
Sets the data of a field of a type writer.
Definition: reflwrit.cxx:1123
REG_DLLPUBLIC sal_Bool typereg_writer_setMethodData(void *handle, sal_uInt16 index, rtl_uString const *documentation, RTMethodMode flags, rtl_uString const *name, rtl_uString const *returnTypeName, sal_uInt16 parameterCount, sal_uInt16 exceptionCount) SAL_THROW_EXTERN_C()
Sets the data of a method of a type writer.
Definition: reflwrit.cxx:1156
#define SAL_THROW_EXTERN_C()
REG_DLLPUBLIC sal_Bool typereg_writer_setSuperTypeName(void const *handle, sal_uInt16 index, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the type name of a super type of a type writer.
Definition: reflwrit.cxx:1266
typereg_Version
The version of a binary blob that represents a UNOIDL type.
Definition: version.h:41
specifies a variable container for field values.
Definition: types.hxx:212
REG_DLLPUBLIC void const * typereg_writer_getBlob(void *handle, sal_uInt32 *size) SAL_THROW_EXTERN_C()
Returns the blob of a type writer.
Definition: reflwrit.cxx:1202
REG_DLLPUBLIC void typereg_writer_destroy(void *handle) SAL_THROW_EXTERN_C()
Destroys a type writer.
Definition: reflwrit.cxx:1262
REG_DLLPUBLIC sal_Bool typereg_writer_setMethodParameterData(void const *handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex, RTParamMode flags, rtl_uString const *name, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the data of a parameter of a method of a type writer.
Definition: reflwrit.cxx:1173
unsigned char sal_Bool
RTTypeClass
specifies the typeclass of a binary type blob.
Definition: types.hxx:31
RTValueType
specifies the type of a field value.
Definition: types.hxx:195
REG_DLLPUBLIC sal_Bool typereg_writer_setReferenceData(void *handle, sal_uInt16 index, rtl_uString const *documentation, RTReferenceType sort, RTFieldAccess flags, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets the data of a reference of a type writer.
Definition: reflwrit.cxx:1231
RTMethodMode
specifies the mode of a method.
Definition: types.hxx:231
REG_DLLPUBLIC sal_Bool typereg_writer_setMethodExceptionTypeName(void const *handle, sal_uInt16 methodIndex, sal_uInt16 exceptionIndex, rtl_uString const *typeName) SAL_THROW_EXTERN_C()
Sets an exception type name of a method of a type writer.
Definition: reflwrit.cxx:1188
RTFieldAccess
specifies the type for the field access.
Definition: types.hxx:132