LibreOffice Module registry (master)  1
reflwrit.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_REFLWRIT_HXX
21 #define INCLUDED_REGISTRY_SOURCE_REFLWRIT_HXX
22 
23 #include <registry/types.hxx>
24 #include <rtl/ustring.hxx>
25 
27 
29 typedef void* TypeWriterImpl;
30 
40 {
41 public:
42 
53  const OUString& typeName,
54  const OUString& superTypeName,
55  sal_uInt16 fieldCount);
56 
62 
74  void setFieldData( sal_uInt16 index,
75  const OUString& name,
76  const OUString& typeName,
77  const OUString& doku,
78  const OUString& fileName,
79  RTFieldAccess access,
80  const RTConstValue& constValue);
81 
87  const sal_uInt8* getBlop();
88 
91  sal_uInt32 getBlopSize();
92 
93 private:
94  RegistryTypeWriter(RegistryTypeWriter const &) = delete;
95  void operator =(RegistryTypeWriter const &) = delete;
96 
99 };
100 
101 #endif
102 
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RegistryTypeWriter writes/creates a binary type blob.
Definition: reflwrit.hxx:39
OUString typeName
const sal_uInt8 * getBlop()
returns a pointer to the new type blob.
Definition: reflwrit.cxx:1325
void operator=(RegistryTypeWriter const &)=delete
void setFieldData(sal_uInt16 index, const OUString &name, const OUString &typeName, const OUString &doku, const OUString &fileName, RTFieldAccess access, const RTConstValue &constValue)
sets the data for a field member of a type blob.
Definition: reflwrit.cxx:1314
RTTypeClass
specifies the typeclass of a binary type blob.
Definition: types.hxx:31
tuple index
unsigned char sal_uInt8
sal_uInt32 getBlopSize()
returns the size of the new type blob in bytes.
Definition: reflwrit.cxx:1330
const char * name
~RegistryTypeWriter()
Destructor.
Definition: reflwrit.cxx:1309
TypeWriterImpl m_hImpl
stores the handle of an implementation class
Definition: reflwrit.hxx:98
RTFieldAccess
specifies the type for the field access.
Definition: types.hxx:132
RegistryTypeWriter(RTTypeClass RTTypeClass, const OUString &typeName, const OUString &superTypeName, sal_uInt16 fieldCount)
Constructor.
Definition: reflwrit.cxx:1297
void * TypeWriterImpl
Implementation handle.
Definition: reflwrit.hxx:26
specifies a helper class for const values.
Definition: refltype.hxx:42