update credits
[LibreOffice.git] / include / unoidl / unoidlprovider.hxx
blobd7d4fbb97f8c321c314c2eccac74bacc348cbd02
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_UNOIDL_UNOIDLPROVIDER_HXX
11 #define INCLUDED_UNOIDL_UNOIDLPROVIDER_HXX
13 #include "sal/config.h"
15 #include "rtl/ref.hxx"
16 #include "sal/types.h"
17 #include "unoidl/detail/dllapi.hxx"
18 #include "unoidl/unoidl.hxx"
20 namespace unoidl { namespace detail {
21 class MappedFile;
22 struct MapEntry;
23 } }
25 namespace unoidl {
27 class LO_DLLPUBLIC_UNOIDL UnoidlProvider: public Provider {
28 public:
29 // throws FileFormatException, NoSuchFileException:
30 explicit UnoidlProvider(OUString const & uri);
32 // throws FileFormatException:
33 virtual rtl::Reference< MapCursor > createRootCursor() const;
35 // throws FileFormatException:
36 virtual rtl::Reference< Entity > findEntity(OUString const & name)
37 const;
39 // throws FileFormatException:
40 sal_uInt32 find(OUString const & name, bool * constant = 0) const;
42 // throws FileFormatException:
43 rtl::Reference< Entity > getEntity(sal_uInt32 offset) const;
45 // throws FileFormatException:
46 ConstantValue getConstant(sal_uInt32 offset) const;
48 private:
49 virtual SAL_DLLPRIVATE ~UnoidlProvider() throw ();
51 rtl::Reference< detail::MappedFile > file_;
52 detail::MapEntry const * mapBegin_;
53 sal_uInt32 mapSize_;
58 #endif
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */