1 /*
2  * Copyright (C) 2013, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*
18  * !!!!! DO NOT EDIT THIS FILE !!!!!
19  *
20  * This file was generated from
21  *   dictionary/structure/v4/ver4_dict_constants.h
22  */
23 
24 #ifndef LATINIME_BACKWARD_V402_VER4_DICT_CONSTANTS_H
25 #define LATINIME_BACKWARD_V402_VER4_DICT_CONSTANTS_H
26 
27 #include "defines.h"
28 
29 namespace latinime {
30 namespace backward {
31 namespace v402 {
32 
33 // TODO: Create PtConstants under the pt_common and move some constant values there.
34 // Note that there are corresponding definitions in FormatSpec.java.
35 class Ver4DictConstants {
36  public:
37     static const char *const TRIE_FILE_EXTENSION;
38     static const char *const HEADER_FILE_EXTENSION;
39     static const char *const FREQ_FILE_EXTENSION;
40     static const char *const TERMINAL_ADDRESS_TABLE_FILE_EXTENSION;
41     static const char *const BIGRAM_FILE_EXTENSION;
42     static const char *const BIGRAM_LOOKUP_TABLE_FILE_EXTENSION;
43     static const char *const BIGRAM_CONTENT_TABLE_FILE_EXTENSION;
44     static const char *const SHORTCUT_FILE_EXTENSION;
45     static const char *const SHORTCUT_LOOKUP_TABLE_FILE_EXTENSION;
46     static const char *const SHORTCUT_CONTENT_TABLE_FILE_EXTENSION;
47 
48     static const int MAX_DICTIONARY_SIZE;
49     static const int MAX_DICT_EXTENDED_REGION_SIZE;
50 
51     static const int NOT_A_TERMINAL_ID;
52     static const int PROBABILITY_SIZE;
53     static const int FLAGS_IN_PROBABILITY_FILE_SIZE;
54     static const int TERMINAL_ADDRESS_TABLE_ADDRESS_SIZE;
55     static const int NOT_A_TERMINAL_ADDRESS;
56     static const int TERMINAL_ID_FIELD_SIZE;
57     static const int TIME_STAMP_FIELD_SIZE;
58     static const int WORD_LEVEL_FIELD_SIZE;
59     static const int WORD_COUNT_FIELD_SIZE;
60 
61     static const int BIGRAM_ADDRESS_TABLE_BLOCK_SIZE;
62     static const int BIGRAM_ADDRESS_TABLE_DATA_SIZE;
63     static const int SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE;
64     static const int SHORTCUT_ADDRESS_TABLE_DATA_SIZE;
65 
66     static const int BIGRAM_FLAGS_FIELD_SIZE;
67     static const int BIGRAM_TARGET_TERMINAL_ID_FIELD_SIZE;
68     static const int INVALID_BIGRAM_TARGET_TERMINAL_ID;
69     static const int BIGRAM_PROBABILITY_MASK;
70     static const int BIGRAM_HAS_NEXT_MASK;
71     // Used when bigram list has time stamp.
72     static const int BIGRAM_LARGE_PROBABILITY_FIELD_SIZE;
73 
74     static const int SHORTCUT_FLAGS_FIELD_SIZE;
75     static const int SHORTCUT_PROBABILITY_MASK;
76     static const int SHORTCUT_HAS_NEXT_MASK;
77 
78  private:
79     DISALLOW_IMPLICIT_CONSTRUCTORS(Ver4DictConstants);
80 };
81 } // namespace v402
82 } // namespace backward
83 } // namespace latinime
84 #endif /* LATINIME_BACKWARD_V402_VER4_DICT_CONSTANTS_H */
85