librime: rime::ResourceResolver Class Reference

| librime 1.2 Rime Input Method Engine, the core library

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

`#include <resource.h>`

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

## Public Member Functions
| ResourceResolver (const ResourceType type)
virtual | ~ResourceResolver ()
virtual path | ResolvePath (const string &resource_id)
string | ToResourceId (const string &file_path) const
string | ToFilePath (const string &resource_id) const
void | set_root_path (path root_path)
path | root_path () const

## Protected Attributes
const ResourceType | type_
path | root_path_

## Constructor & Destructor Documentation

## ◆ ResourceResolver()

rime::ResourceResolver::ResourceResolver | ( | const ResourceType | type | ) |
| inlineexplicit

## ◆ ~ResourceResolver()

virtual rime::ResourceResolver::~ResourceResolver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ ResolvePath()

path rime::ResourceResolver::ResolvePath | ( | const string & | resource_id | ) |
| virtual

Reimplemented in rime::FallbackResourceResolver.

## ◆ root_path()

path rime::ResourceResolver::root_path | ( |  | ) | const
| inline

## ◆ set_root_path()

void rime::ResourceResolver::set_root_path | ( | path | root_path | ) |
| inline

## ◆ ToFilePath()

string rime::ResourceResolver::ToFilePath | ( | const string & | resource_id | ) | const

## ◆ ToResourceId()

string rime::ResourceResolver::ToResourceId | ( | const string & | file_path | ) | const

## Member Data Documentation

## ◆ root_path_

path rime::ResourceResolver::root_path_
| protected

## ◆ type_

const ResourceType rime::ResourceResolver::type_
| protected

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

- resource.h
- resource.cc