LibreOffice Module registry (master)  1
typereg_reader.hxx
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_READER_H
21 #define INCLUDED_REGISTRY_READER_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 
55  void const * buffer, sal_uInt32 length,
56  void ** result);
57 
65 REG_DLLPUBLIC void typereg_reader_acquire(void * handle);
66 
76 REG_DLLPUBLIC void typereg_reader_release(void * handle);
77 
90 
103  void * handle, rtl_uString ** result);
104 
117 REG_DLLPUBLIC void typereg_reader_getFileName(void * handle, rtl_uString ** result);
118 
135 
146 REG_DLLPUBLIC bool typereg_reader_isPublished(void * handle);
147 
159 REG_DLLPUBLIC void typereg_reader_getTypeName(void * handle, rtl_uString ** result);
160 
171 REG_DLLPUBLIC sal_uInt16 typereg_reader_getSuperTypeCount(void * handle);
172 
188  void * handle, rtl_uString ** result, sal_uInt16 index);
189 
200 REG_DLLPUBLIC sal_uInt16 typereg_reader_getFieldCount(void * handle);
201 
216  void * handle, rtl_uString ** result, sal_uInt16 index);
217 
233  void * handle, rtl_uString ** result, sal_uInt16 index);
234 
247  void * handle, sal_uInt16 index);
248 
263  void * handle, rtl_uString ** result, sal_uInt16 index);
264 
279  void * handle, rtl_uString ** result, sal_uInt16 index);
280 
300  void * handle, sal_uInt16 index, RTValueType * type,
301  union RTConstValueUnion * value);
302 
313 REG_DLLPUBLIC sal_uInt16 typereg_reader_getMethodCount(void * handle);
314 
329  void * handle, rtl_uString ** result, sal_uInt16 index);
330 
343  void * handle, sal_uInt16 index);
344 
359  void * handle, rtl_uString ** result, sal_uInt16 index);
360 
375  void * handle, rtl_uString ** result, sal_uInt16 index);
376 
389  void * handle, sal_uInt16 index);
390 
408  void * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex);
409 
428  void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
429  sal_uInt16 parameterIndex);
430 
449  void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
450  sal_uInt16 parameterIndex);
451 
464  void * handle, sal_uInt16 index);
465 
484  void * handle, rtl_uString ** result, sal_uInt16 methodIndex,
485  sal_uInt16 exceptionIndex);
486 
497 REG_DLLPUBLIC sal_uInt16 typereg_reader_getReferenceCount(void * handle);
498 
514  void * handle, rtl_uString ** result, sal_uInt16 index);
515 
529  void * handle, sal_uInt16 index);
530 
544  void * handle, sal_uInt16 index);
545 
561  void * handle, rtl_uString ** result, sal_uInt16 index);
562 
563 #endif
564 
565 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
REG_DLLPUBLIC void typereg_reader_getDocumentation(void *handle, rtl_uString **result)
Returns the documentation of a type reader.
Definition: reflread.cxx:1314
REG_DLLPUBLIC void typereg_reader_getFileName(void *handle, rtl_uString **result)
Returns the file name of a type reader.
Definition: reflread.cxx:1331
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 typereg_Version typereg_reader_getVersion(void const *handle)
Returns the binary blob version of a type reader.
Definition: reflread.cxx:1242
REG_DLLPUBLIC void typereg_reader_getFieldDocumentation(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the documentation of a field of a type reader.
Definition: reflread.cxx:1429
#define REG_DLLPUBLIC
Definition: regdllapi.h:28
REG_DLLPUBLIC void typereg_reader_getMethodParameterName(void *handle, rtl_uString **result, sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
Returns the name of a parameter of a method of a type reader.
Definition: reflread.cxx:1513
REG_DLLPUBLIC sal_uInt16 typereg_reader_getMethodParameterCount(void *handle, sal_uInt16 index)
Returns the number of parameters of a method of a type reader.
Definition: reflread.cxx:1487
REG_DLLPUBLIC bool typereg_reader_getFieldValue(void *handle, sal_uInt16 index, RTValueType *type, union RTConstValueUnion *value)
Returns the value of a field of a type reader.
Definition: reflread.cxx:1403
REG_DLLPUBLIC void typereg_reader_getMethodName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the name of a method of a type reader.
Definition: reflread.cxx:1471
typereg_Version
The version of a binary blob that represents a UNOIDL type.
Definition: version.h:41
REG_DLLPUBLIC RTParamMode typereg_reader_getMethodParameterFlags(void *handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
Returns the flags of a parameter of a method of a type reader.
Definition: reflread.cxx:1529
REG_DLLPUBLIC sal_uInt16 typereg_reader_getMethodExceptionCount(void *handle, sal_uInt16 index)
Returns the number of exceptions of a method of a type reader.
Definition: reflread.cxx:1538
specifies a variable container for field values.
Definition: types.hxx:212
REG_DLLPUBLIC RTFieldAccess typereg_reader_getReferenceFlags(void *handle, sal_uInt16 index)
Returns the flags of a reference of a type reader.
Definition: reflread.cxx:1655
REG_DLLPUBLIC void typereg_reader_release(void *handle)
Decrements the reference count of a type reader.
Definition: reflread.cxx:1231
REG_DLLPUBLIC void typereg_reader_getMethodParameterTypeName(void *handle, rtl_uString **result, sal_uInt16 methodIndex, sal_uInt16 parameterIndex)
Returns the type name of a parameter of a method of a type reader.
Definition: reflread.cxx:1497
REG_DLLPUBLIC bool typereg_reader_isPublished(void *handle)
Returns whether a type reader is published.
Definition: reflread.cxx:1266
REG_DLLPUBLIC sal_uInt16 typereg_reader_getMethodCount(void *handle)
Returns the number of methods of a type reader.
Definition: reflread.cxx:1462
REG_DLLPUBLIC bool typereg_reader_create(void const *buffer, sal_uInt32 length, void **result)
Creates a type reader working on a binary blob that represents a UNOIDL type.
Definition: reflread.cxx:1182
REG_DLLPUBLIC sal_uInt16 typereg_reader_getFieldCount(void *handle)
Returns the number of fields of a type reader.
Definition: reflread.cxx:1349
RTTypeClass
specifies the typeclass of a binary type blob.
Definition: types.hxx:31
REG_DLLPUBLIC RTMethodMode typereg_reader_getMethodFlags(void *handle, sal_uInt16 index)
Returns the flags of a method of a type reader.
Definition: reflread.cxx:1580
REG_DLLPUBLIC RTFieldAccess typereg_reader_getFieldFlags(void *handle, sal_uInt16 index)
Returns the flags of a field of a type reader.
Definition: reflread.cxx:1394
RTValueType
specifies the type of a field value.
Definition: types.hxx:195
REG_DLLPUBLIC void typereg_reader_getMethodExceptionTypeName(void *handle, rtl_uString **result, sal_uInt16 methodIndex, sal_uInt16 exceptionIndex)
Returns the type name of an exception of a method of a type reader.
Definition: reflread.cxx:1548
REG_DLLPUBLIC void typereg_reader_getMethodDocumentation(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the documentation of a method of a type reader.
Definition: reflread.cxx:1589
REG_DLLPUBLIC sal_uInt16 typereg_reader_getSuperTypeCount(void *handle)
Returns the number of super types of a type reader.
Definition: reflread.cxx:1664
RTMethodMode
specifies the mode of a method.
Definition: types.hxx:231
REG_DLLPUBLIC void typereg_reader_getFieldFileName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the file name of a field of a type reader.
Definition: reflread.cxx:1445
REG_DLLPUBLIC void typereg_reader_getFieldTypeName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the type name of a field of a type reader.
Definition: reflread.cxx:1378
REG_DLLPUBLIC void typereg_reader_getMethodReturnTypeName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the return type name of a method of a type reader.
Definition: reflread.cxx:1564
REG_DLLPUBLIC void typereg_reader_getTypeName(void *handle, rtl_uString **result)
Returns the type name of a type reader.
Definition: reflread.cxx:1279
REG_DLLPUBLIC void typereg_reader_acquire(void *handle)
Increments the reference count of a type reader.
Definition: reflread.cxx:1223
REG_DLLPUBLIC RTTypeClass typereg_reader_getTypeClass(void *handle)
Returns the type class of a type reader.
Definition: reflread.cxx:1253
REG_DLLPUBLIC void typereg_reader_getFieldName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the name of a field of a type reader.
Definition: reflread.cxx:1363
RTFieldAccess
specifies the type for the field access.
Definition: types.hxx:132
REG_DLLPUBLIC void typereg_reader_getReferenceDocumentation(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the documentation of a reference of a type reader.
Definition: reflread.cxx:1639
REG_DLLPUBLIC sal_uInt16 typereg_reader_getReferenceCount(void *handle)
Returns the number of references of a type reader.
Definition: reflread.cxx:1605
REG_DLLPUBLIC void typereg_reader_getReferenceTypeName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the type name of a reference of a type reader.
Definition: reflread.cxx:1614
REG_DLLPUBLIC RTReferenceType typereg_reader_getReferenceSort(void *handle, sal_uInt16 index)
Returns the sort of a reference of a type reader.
Definition: reflread.cxx:1630
REG_DLLPUBLIC void typereg_reader_getSuperTypeName(void *handle, rtl_uString **result, sal_uInt16 index)
Returns the type name of a super type of a type reader.
Definition: reflread.cxx:1673