librime: rime::UserDbHelper Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

A helper class to provide extra functionalities related to user db. More...

`#include <user_db.h>`

Collaboration diagram for rime::UserDbHelper:
[legend]

## Public Member Functions
| UserDbHelper (Db *db)
| UserDbHelper (const the< Db > &db)
| UserDbHelper (const an< Db > &db)
RIME_DLL bool | UpdateUserInfo ()
RIME_DLL bool | UniformBackup (const path &snapshot_file)
RIME_DLL bool | UniformRestore (const path &snapshot_file)
bool | IsUserDb ()
string | GetDbName ()
string | GetUserId ()
string | GetRimeVersion ()

## Static Public Member Functions
static RIME_DLL bool | IsUniformFormat (const path &file_path)

## Protected Attributes
Db * | db_

## Detailed Description

A helper class to provide extra functionalities related to user db.

## Constructor & Destructor Documentation

## ◆ UserDbHelper() [1/3]

rime::UserDbHelper::UserDbHelper | ( | Db * | db | ) |
| inline

## ◆ UserDbHelper() [2/3]

rime::UserDbHelper::UserDbHelper | ( | const the< Db > & | db | ) |
| inline

## ◆ UserDbHelper() [3/3]

rime::UserDbHelper::UserDbHelper | ( | const an< Db > & | db | ) |
| inline

## Member Function Documentation

## ◆ GetDbName()

string rime::UserDbHelper::GetDbName | ( |  | ) |

## ◆ GetRimeVersion()

string rime::UserDbHelper::GetRimeVersion | ( |  | ) |

## ◆ GetUserId()

string rime::UserDbHelper::GetUserId | ( |  | ) |

## ◆ IsUniformFormat()

bool rime::UserDbHelper::IsUniformFormat | ( | const path & | file_path | ) |
| static

## ◆ IsUserDb()

bool rime::UserDbHelper::IsUserDb | ( |  | ) |

## ◆ UniformBackup()

bool rime::UserDbHelper::UniformBackup | ( | const path & | snapshot_file | ) |

## ◆ UniformRestore()

bool rime::UserDbHelper::UniformRestore | ( | const path & | snapshot_file | ) |

## ◆ UpdateUserInfo()

bool rime::UserDbHelper::UpdateUserInfo | ( |  | ) |

## Member Data Documentation

## ◆ db_

Db* rime::UserDbHelper::db_
| protected

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

- user_db.h
- user_db.cc