bump product version to 5.0.4.1
[LibreOffice.git] / unoidl / source / sourcefileprovider.hxx
blobaa215b5b2e2c3f4db2aaae1c0d88fa40ba3911f1
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_SOURCE_SOURCEFILEPROVIDER_HXX
11 #define INCLUDED_UNOIDL_SOURCE_SOURCEFILEPROVIDER_HXX
13 #include "sal/config.h"
15 #include <map>
17 #include "rtl/ref.hxx"
18 #include "unoidl/unoidl.hxx"
20 namespace unoidl { namespace detail {
22 class SourceFileProvider: public Provider {
23 public:
24 // throws FileFormatException, NoSuchFileException:
25 SourceFileProvider(
26 rtl::Reference<Manager> const & manager, OUString const & uri);
28 // throws FileFormatException:
29 virtual rtl::Reference<MapCursor> createRootCursor() const SAL_OVERRIDE;
31 // throws FileFormatException:
32 virtual rtl::Reference<Entity> findEntity(OUString const & name) const SAL_OVERRIDE;
34 private:
35 virtual ~SourceFileProvider() throw ();
37 std::map< OUString, rtl::Reference<Entity> > rootMap_;
40 } }
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */