nss: upgrade to release 3.73
[LibreOffice.git] / unoidl / source / sourcetreeprovider.hxx
blobe98ee7383fad7f207ead01585c5f4ca4477f1730
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_SOURCETREEPROVIDER_HXX
11 #define INCLUDED_UNOIDL_SOURCE_SOURCETREEPROVIDER_HXX
13 #include <sal/config.h>
15 #include <map>
17 #include <rtl/ref.hxx>
18 #include <unoidl/unoidl.hxx>
20 namespace unoidl::detail
22 class SourceTreeProvider : public Provider
24 public:
25 // throws FileFormatException, NoSuchFileException:
26 SourceTreeProvider(Manager& manager, OUString const& uri);
28 // throws FileFormatException:
29 virtual rtl::Reference<MapCursor> createRootCursor() const override;
31 // throws FileFormatException:
32 virtual rtl::Reference<Entity> findEntity(OUString const& name) const override;
34 private:
35 virtual ~SourceTreeProvider() throw() override;
37 Manager& manager_;
38 OUString uri_;
39 mutable std::map<OUString, rtl::Reference<Entity>> cache_; //TODO: at manager
43 #endif
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */