1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
{
27 class LO_DLLPUBLIC_UNOIDL UnoidlProvider
: public Provider
{
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
)
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;
49 virtual SAL_DLLPRIVATE
~UnoidlProvider() throw ();
51 rtl::Reference
< detail::MappedFile
> file_
;
52 detail::MapEntry
const * mapBegin_
;
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */