Open Chinese Convert  1.0.1
A project for conversion between Traditional and Simplified Chinese
 All Classes Functions Typedefs Modules
Public Member Functions | Static Public Member Functions | List of all members
opencc::BinaryDict Class Reference

Binary dictionary for faster deserialization. More...

#include <BinaryDict.hpp>

Inheritance diagram for opencc::BinaryDict:
opencc::SerializableDict

Public Member Functions

 BinaryDict (const LexiconPtr &_lexicon)
 
virtual void SerializeToFile (FILE *fp) const
 Serializes the dictionary and writes in to a file.
 
const LexiconPtr & GetLexicon () const
 
size_t KeyMaxLength () const
 
- Public Member Functions inherited from opencc::SerializableDict
virtual void SerializeToFile (const string &fileName) const
 Serializes the dictionary and writes in to a file.
 

Static Public Member Functions

static BinaryDictPtr NewFromFile (FILE *fp)
 
- Static Public Member Functions inherited from opencc::SerializableDict
template<typename DICT >
static bool TryLoadFromFile (const string &fileName, std::shared_ptr< DICT > *dict)
 
template<typename DICT >
static std::shared_ptr< DICT > NewFromFile (const string &fileName)
 

Detailed Description

Binary dictionary for faster deserialization.


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