Inflection
Morphology Inflection
Loading...
Searching...
No Matches
LocalizedCommonConceptFactoryProvider.hpp
1/*
2 * Copyright 2017-2024 Apple Inc. All rights reserved.
3 */
4#pragma once
5
6#include <inflection/util/fwd.hpp>
7#include <inflection/dialog/fwd.hpp>
8#include <inflection/dialog/CommonConceptFactoryProvider.hpp>
9#include <inflection/dialog/CommonConceptFactory.hpp>
10#include <inflection/util/ULocale.hpp>
11#include <map>
12#include <mutex>
13
18 : public virtual CommonConceptFactoryProvider
19{
20public:
24
25private:
26 ::std::map<::inflection::util::ULocale, ::inflection::dialog::CommonConceptFactory*> commonConceptFactoryCache { };
27 ::std::mutex mutex { };
28
29public:
33 const ::inflection::dialog::CommonConceptFactory* getCommonConceptFactory(const ::inflection::util::ULocale& locale) override;
38
47};
Allows creation of CommonConceptFactory by specifying a locale.
A provider of CommonConceptFactory by specifying a locale.
const ::inflection::dialog::CommonConceptFactory * getCommonConceptFactory(const ::inflection::util::ULocale &locale) override
static LocalizedCommonConceptFactoryProvider * getDefaultCommonConceptFactoryProvider()
The C++ namespace for Inflection.
Definition fwd.hpp:11