librime 1.2
Rime Input Method Engine, the core library
ticket.h
Go to the documentation of this file.
1//
2// Copyright RIME Developers
3// Distributed under the BSD License
4//
5// 2013-10-28 GONG Chen <chen.sst@gmail.com>
6//
7#ifndef RIME_TICKET_H_
8#define RIME_TICKET_H_
9
10#include <rime_api.h>
11
12namespace rime {
13
14class Engine;
15class Schema;
16
17struct Ticket {
18 Engine* engine = nullptr;
19 Schema* schema = nullptr;
20 string name_space;
21 string klass;
22
23 Ticket() = default;
24 Ticket(Schema* s, const string& ns);
25 // prescription: in the form of "klass" or "klass@alias"
26 // where alias, if given, will override default name space
28 const string& ns = "",
29 const string& prescription = "");
30};
31
32} // namespace rime
33
34#endif // RIME_TICKET_H_
#define RIME_DLL
Definition rime_api.h:33
Definition algebra.cc:12
Definition engine.h:20
Definition schema.h:15
Engine * engine
Definition ticket.h:18
Ticket()=default
Schema * schema
Definition ticket.h:19
string klass
Definition ticket.h:21
string name_space
Definition ticket.h:20