Debian Codegraph @

src/Common.hpp

raw symbols SCIP
1 /*
2 * Open Chinese Convert
3 *
4 * Copyright 2010-2014 Carbo Kuo <[email protected]>
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 #pragma once
20
21 // Microsoft Visual C++ specific
22 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
23 #pragma warning(disable : 4251 4266 4350 4503 4512 4514 4710 4820)
24 #endif
25
26 #include <cstddef>
27 #include <memory>
28 #include <string>
29 #include <vector>
30
31 #include "Export.hpp"
32 #include "Optional.hpp"
33
34 // Forward decalarations and alias
35 namespace opencc {
36 class Config;
37 class Conversion;
38 class ConversionChain;
39 class Converter;
40 class Dict;
41 class DictEntry;
42 class DictGroup;
43 class Lexicon;
44 class MarisaDict;
45 class MultiValueDictEntry;
46 class NoValueDictEntry;
47 class Segmentation;
48 class Segments;
49 class SerializableDict;
50 class SingleValueDictEntry;
51 class TextDict;
52 typedef std::shared_ptr<Conversion> ConversionPtr;
53 typedef std::shared_ptr<ConversionChain> ConversionChainPtr;
54 typedef std::shared_ptr<Converter> ConverterPtr;
55 typedef std::shared_ptr<Dict> DictPtr;
56 typedef std::shared_ptr<DictGroup> DictGroupPtr;
57 typedef std::shared_ptr<Lexicon> LexiconPtr;
58 typedef std::shared_ptr<MarisaDict> MarisaDictPtr;
59 typedef std::shared_ptr<Segmentation> SegmentationPtr;
60 typedef std::shared_ptr<Segments> SegmentsPtr;
61 typedef std::shared_ptr<SerializableDict> SerializableDictPtr;
62 typedef std::shared_ptr<TextDict> TextDictPtr;
63
64 class BinaryDict;
65 class DartsDict;
66 typedef std::shared_ptr<BinaryDict> BinaryDictPtr;
67 typedef std::shared_ptr<DartsDict> DartsDictPtr;
68
69 } // namespace opencc
70
71 #ifndef PKGDATADIR
72 const std::string PACKAGE_DATA_DIRECTORY = "";
73 #else // ifndef PKGDATADIR
74 const std::string PACKAGE_DATA_DIRECTORY = PKGDATADIR "/";
75 #endif // ifndef PKGDATADIR
76
77 #ifndef OPENCC_SEGMENTATION_PLUGIN_DIR
78 const std::string PACKAGE_SEGMENTATION_PLUGIN_DIRECTORY = "";
79 #else
80 const std::string PACKAGE_SEGMENTATION_PLUGIN_DIRECTORY =
81 OPENCC_SEGMENTATION_PLUGIN_DIR "/";
82 #endif
83
84 #ifndef OPENCC_VERSION
85 #define OPENCC_VERSION "1.3.*"
86 #endif // ifndef OPENCC_VERSION