Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
BuildGrammar Class Reference

#include <BuildGrammar.h>

Public Member Functions

 BuildGrammar ()
 
void buildGrammar (UserData *udata, const string base_path, const string grammar_build_path, const string asr_res_path, const string grammar_file)
 
 ~BuildGrammar ()
 

Static Private Member Functions

static int buildGrammarCallback (int ecode, const char *info, void *udata)
 
static int writeIntoFile (const string file_path, UserData *info)
 

Private Attributes

UserData asr_data
 
std::string asr_res_path
 
std::string base_path
 
std::string grammar_build_path
 
std::string grammar_file
 

Detailed Description

Definition at line 37 of file BuildGrammar.h.

Constructor & Destructor Documentation

BuildGrammar::BuildGrammar ( )

Definition at line 15 of file build_xunfei_grammar.cpp.

BuildGrammar::~BuildGrammar ( )

Definition at line 19 of file build_xunfei_grammar.cpp.

Member Function Documentation

void BuildGrammar::buildGrammar ( UserData udata,
const string  base_path,
const string  grammar_build_path,
const string  asr_res_path,
const string  grammar_file 
)

Definition at line 24 of file build_xunfei_grammar.cpp.

int BuildGrammar::buildGrammarCallback ( int  ecode,
const char *  info,
void *  udata 
)
staticprivate

Definition at line 97 of file build_xunfei_grammar.cpp.

int BuildGrammar::writeIntoFile ( const string  file_path,
UserData info 
)
staticprivate

Definition at line 121 of file build_xunfei_grammar.cpp.

Member Data Documentation

UserData BuildGrammar::asr_data
private

Definition at line 44 of file BuildGrammar.h.

std::string BuildGrammar::asr_res_path
private

Definition at line 42 of file BuildGrammar.h.

std::string BuildGrammar::base_path
private

Definition at line 40 of file BuildGrammar.h.

std::string BuildGrammar::grammar_build_path
private

Definition at line 41 of file BuildGrammar.h.

std::string BuildGrammar::grammar_file
private

Definition at line 43 of file BuildGrammar.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54