librime: plugins.h Source File

| librime 1.2 Rime Input Method Engine, the core library

plugins.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5#ifndef RIME_CONFIG_PLUGINS_H_
6#define RIME_CONFIG_PLUGINS_H_
7
8#include <rime/common.h>
9
10namespace rime {
11
12class ConfigCompiler;
13struct ConfigResource;
14
15 class ConfigCompilerPlugin {
16 public:
17 typedef bool Review(ConfigCompiler* compiler, an<ConfigResource> resource);
18
19 virtual ~ConfigCompilerPlugin() = default;
20
21 virtual Review ReviewCompileOutput = 0;
22 virtual Review ReviewLinkOutput = 0;
23};
24
25 class AutoPatchConfigPlugin : public ConfigCompilerPlugin {
26 public:
27 Review ReviewCompileOutput;
28 Review ReviewLinkOutput;
29};
30
31 class DefaultConfigPlugin : public ConfigCompilerPlugin {
32 public:
33 Review ReviewCompileOutput;
34 Review ReviewLinkOutput;
35};
36
37 class LegacyPresetConfigPlugin : public ConfigCompilerPlugin {
38 public:
39 Review ReviewCompileOutput;
40 Review ReviewLinkOutput;
41};
42
43 class LegacyDictionaryConfigPlugin : public ConfigCompilerPlugin {
44 public:
45 Review ReviewCompileOutput;
46 Review ReviewLinkOutput;
47};
48
49 class BuildInfoPlugin : public ConfigCompilerPlugin {
50 public:
51 Review ReviewCompileOutput;
52 Review ReviewLinkOutput;
53};
54
55class ResourceResolver;
56struct ResourceType;
57
58 class SaveOutputPlugin : public ConfigCompilerPlugin {
59 public:
60 SaveOutputPlugin();
61 virtual ~SaveOutputPlugin();
62
63 Review ReviewCompileOutput;
64 Review ReviewLinkOutput;
65
66 private:
67 the<ResourceResolver> resource_resolver_;
68};
69
70} // namespace rime
71
72#endif // RIME_CONFIG_PLUGINS_H_
common.h
rime
Definition algebra.cc:12
rime::an
std::shared_ptr< T > an
Definition common.h:60
rime::the
std::unique_ptr< T > the
Definition common.h:58
rime::ConfigResource
Definition config_compiler.h:15
rime::ConfigCompiler
Definition config_compiler.h:41
rime::ConfigCompilerPlugin
Definition plugins.h:15
rime::ConfigCompilerPlugin::ReviewLinkOutput
virtual Review ReviewLinkOutput
Definition plugins.h:22
rime::ConfigCompilerPlugin::ReviewCompileOutput
virtual Review ReviewCompileOutput
Definition plugins.h:21
rime::ConfigCompilerPlugin::~ConfigCompilerPlugin
virtual ~ConfigCompilerPlugin()=default
rime::ConfigCompilerPlugin::Review
bool Review(ConfigCompiler *compiler, an< ConfigResource > resource)
Definition plugins.h:17
rime::AutoPatchConfigPlugin
Definition plugins.h:25
rime::AutoPatchConfigPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:27
rime::AutoPatchConfigPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:28
rime::DefaultConfigPlugin
Definition plugins.h:31
rime::DefaultConfigPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:33
rime::DefaultConfigPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:34
rime::LegacyPresetConfigPlugin
Definition plugins.h:37
rime::LegacyPresetConfigPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:40
rime::LegacyPresetConfigPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:39
rime::LegacyDictionaryConfigPlugin
Definition plugins.h:43
rime::LegacyDictionaryConfigPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:46
rime::LegacyDictionaryConfigPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:45
rime::BuildInfoPlugin
Definition plugins.h:49
rime::BuildInfoPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:52
rime::BuildInfoPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:51
rime::SaveOutputPlugin::ReviewCompileOutput
Review ReviewCompileOutput
Definition plugins.h:63
rime::SaveOutputPlugin::ReviewLinkOutput
Review ReviewLinkOutput
Definition plugins.h:64
rime::SaveOutputPlugin::SaveOutputPlugin
SaveOutputPlugin()
Definition save_output_plugin.cc:15
rime::ResourceType
Definition resource.h:16
rime::ResourceResolver
Definition resource.h:22