librime: rime::DbSource Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | Protected Attributes | List of all members
rime::DbSource Class Reference

`#include <db_utils.h>`

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

## Public Member Functions
| DbSource (Db *db)
virtual bool | MetaGet (string *key, string *value)
virtual bool | Get (string *key, string *value)
Public Member Functions inherited from rime::Source
virtual | ~Source ()=default
template<class SinkType>
int | operator>> (SinkType &sink)
int | Dump (Sink *sink)

## Protected Attributes
Db * | db_
an< DbAccessor > | metadata_
an< DbAccessor > | data_

## Constructor & Destructor Documentation

## ◆ DbSource()

rime::DbSource::DbSource | ( | Db * | db | ) |
| explicit

## Member Function Documentation

## ◆ Get()

bool rime::DbSource::Get | ( | string * | key,
|  | string * | value )
| virtual

Implements rime::Source.

## ◆ MetaGet()

bool rime::DbSource::MetaGet | ( | string * | key,
|  | string * | value )
| virtual

Implements rime::Source.

## Member Data Documentation

## ◆ data_

an<DbAccessor> rime::DbSource::data_
| protected

## ◆ db_

Db* rime::DbSource::db_
| protected

## ◆ metadata_

an<DbAccessor> rime::DbSource::metadata_
| protected

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

- db_utils.h
- db_utils.cc