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/content/sparse_table_dict_content.cpp
22  */
23 
24 #include "dictionary/structure/backward/v402/content/sparse_table_dict_content.h"
25 
26 namespace latinime {
27 namespace backward {
28 namespace v402 {
29 
flush(const char * const dictPath,const char * const lookupTableFileNameSuffix,const char * const addressTableFileNameSuffix,const char * const contentFileNameSuffix) const30 bool SparseTableDictContent::flush(const char *const dictPath,
31         const char *const lookupTableFileNameSuffix, const char *const addressTableFileNameSuffix,
32         const char *const contentFileNameSuffix) const {
33     if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, lookupTableFileNameSuffix,
34             &mExpandableLookupTableBuffer)){
35         return false;
36     }
37     if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, addressTableFileNameSuffix,
38             &mExpandableAddressTableBuffer)) {
39         return false;
40     }
41     if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, contentFileNameSuffix,
42             &mExpandableContentBuffer)) {
43         return false;
44     }
45     return true;
46 }
47 
48 } // namespace v402
49 } // namespace backward
50 } // namespace latinime
51