FlightGear next
TranslationDomain.hxx
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Florent Rougon
2// SPDX-License-Identifier: GPL-2.0-or-later
3
8
9#pragma once
10
11#include <map>
12#include <memory>
13#include <string>
14
16
17namespace flightgear
18{
19
26
28{
29public:
30 using ResourceRef = std::shared_ptr<TranslationResource>;
36 ResourceRef getOrCreateResource(const std::string& resourceName);
42 ResourceRef getResource(const std::string& resourceName) const;
43
44private:
45 std::map<std::string, ResourceRef> _map;
46};
47
48} // namespace flightgear
Container class for related translation units.
Class that holds translation resources within a domain.
ResourceRef getOrCreateResource(const std::string &resourceName)
Get the specified TranslationResource instance.
std::shared_ptr< TranslationResource > ResourceRef
ResourceRef getResource(const std::string &resourceName) const
Get the specified TranslationResource instance.
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition Addon.cxx:53