LibreOffice Module registry (master)  1
reflread.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_SOURCE_REFLREAD_HXX
21 #define INCLUDED_REGISTRY_SOURCE_REFLREAD_HXX
22 
23 #include <registry/refltype.hxx>
24 #include <rtl/ustring.hxx>
25 
27 typedef void* TypeReaderImpl;
28 
38 {
39 public:
40 
46  RegistryTypeReader(const sal_uInt8* buffer,
47  sal_uInt32 bufferLen);
48 
51 
57  RTTypeClass getTypeClass() const;
58 
61  OUString getTypeName() const;
62 
65  OUString getSuperTypeName() const;
66 
71  sal_uInt32 getFieldCount() const;
72 
75  OUString getFieldName( sal_uInt16 index ) const;
76 
79  OUString getFieldType( sal_uInt16 index ) const;
80 
83  RTFieldAccess getFieldAccess( sal_uInt16 index ) const;
84 
89  RTConstValue getFieldConstValue( sal_uInt16 index ) const;
90 
95  OUString getFieldDoku( sal_uInt16 index ) const;
96 
102  OUString getFieldFileName( sal_uInt16 index ) const;
103 
104 private:
105  RegistryTypeReader(RegistryTypeReader const &) = delete;
106  void operator =(RegistryTypeReader const &) = delete;
107 
110 };
111 
112 #endif
113 
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RegistryTypeReades reads a binary type blob.
Definition: reflread.hxx:37
void * TypeReaderImpl
Implementation handle.
Definition: reflread.hxx:27
OUString getFieldFileName(sal_uInt16 index) const
returns the IDL filename of the field specified by index.
Definition: reflread.cxx:1753
RTConstValue getFieldConstValue(sal_uInt16 index) const
returns the value of the field specified by index.
Definition: reflread.cxx:1739
OUString getFieldDoku(sal_uInt16 index) const
returns the documentation string for the field specified by index.
Definition: reflread.cxx:1746
OUString getFieldName(sal_uInt16 index) const
returns the name of the field specified by index.
Definition: reflread.cxx:1722
OUString getSuperTypeName() const
returns the full qualified name of the supertype.
Definition: reflread.cxx:1712
RTFieldAccess getFieldAccess(sal_uInt16 index) const
returns the access mode of the field specified by index.
Definition: reflread.cxx:1736
RTTypeClass
specifies the typeclass of a binary type blob.
Definition: types.hxx:31
sal_uInt32 getFieldCount() const
returns the number of fields (attributes/properties, enum values or number of constants in a module)...
Definition: reflread.cxx:1719
tuple index
RTTypeClass getTypeClass() const
returns the typeclass of the type represented by this blob.
Definition: reflread.cxx:1702
unsigned char sal_uInt8
void operator=(RegistryTypeReader const &)=delete
TypeReaderImpl m_hImpl
stores the handle of an implementation class
Definition: reflread.hxx:109
OUString getFieldType(sal_uInt16 index) const
returns the full qualified name of the field specified by index.
Definition: reflread.cxx:1729
RTFieldAccess
specifies the type for the field access.
Definition: types.hxx:132
RegistryTypeReader(const sal_uInt8 *buffer, sal_uInt32 bufferLen)
Constructor.
Definition: reflread.cxx:1692
OUString getTypeName() const
returns the full qualified name of the type.
Definition: reflread.cxx:1705
~RegistryTypeReader()
Destructor. The Destructor frees the data block if the copyData flag was TRUE.
Definition: reflread.cxx:1699
specifies a helper class for const values.
Definition: refltype.hxx:42