librime: switch_translator.h Source File

| librime 1.2 Rime Input Method Engine, the core library

switch_translator.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2013-05-26 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_SWITCH_TRANSLATOR_H_
8#define RIME_SWITCH_TRANSLATOR_H_
9
10#include <rime/translator.h>
11
12namespace rime {
13
14 class SwitchTranslator : public Translator {
15 public:
16 SwitchTranslator(const Ticket& ticket);
17
18 an<Translation> Query(const string& input, const Segment& segment) override;
19};
20
21} // namespace rime
22
23#endif // RIME_SWITCH_TRANSLATOR_H_
translator.h
rime
Definition algebra.cc:12
rime::an
std::shared_ptr< T > an
Definition common.h:60
rime::SwitchTranslator::SwitchTranslator
SwitchTranslator(const Ticket &ticket)
Definition switch_translator.cc:264
rime::SwitchTranslator::Query
an< Translation > Query(const string &input, const Segment &segment) override
Definition switch_translator.cc:266
rime::Segment
Definition segmentation.h:18
rime::Ticket
Definition ticket.h:17
rime::Translator::Translator
Translator(const Ticket &ticket)
Definition translator.h:24