librime: rime::Encoder Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Protected Attributes | List of all members
rime::Encoder Class Referenceabstract

`#include <encoder.h>`

Inheritance diagram for rime::Encoder:
[legend]
Collaboration diagram for rime::Encoder:
[legend]

## Public Member Functions
| Encoder (PhraseCollector *collector)
virtual | ~Encoder ()=default
virtual bool | LoadSettings (Config *config)
virtual bool | EncodePhrase (const string &phrase, const string &value)=0
void | set_collector (PhraseCollector *collector)

## Protected Attributes
PhraseCollector * | collector_

## Constructor & Destructor Documentation

## ◆ Encoder()

rime::Encoder::Encoder | ( | PhraseCollector * | collector | ) |
| inline

## ◆ ~Encoder()

virtual rime::Encoder::~Encoder | ( |  | ) |
| virtualdefault

## Member Function Documentation

## ◆ EncodePhrase()

virtual bool rime::Encoder::EncodePhrase | ( | const string & | phrase,
|  | const string & | value )
| pure virtual

Implemented in rime::ScriptEncoder, and rime::TableEncoder.

## ◆ LoadSettings()

virtual bool rime::Encoder::LoadSettings | ( | Config * | config | ) |
| inlinevirtual

Reimplemented in rime::TableEncoder.

## ◆ set_collector()

void rime::Encoder::set_collector | ( | PhraseCollector * | collector | ) |
| inline

## Member Data Documentation

## ◆ collector_

PhraseCollector* rime::Encoder::collector_
| protected

The documentation for this class was generated from the following file:

- encoder.h