FST  openfst-1.7.1
OpenFst Library
getters.h
Go to the documentation of this file.
1 // See www.openfst.org for extensive documentation on this weighted
2 // finite-state transducer library.
3 //
4 // Classes and functions for registering and invoking FAR main
5 // functions that support multiple and extensible arc types.
6 
7 #ifndef FST_EXTENSIONS_FAR_GETTERS_H_
8 #define FST_EXTENSIONS_FAR_GETTERS_H_
9 
10 #include <fst/flags.h>
11 #include <fst/extensions/far/far.h>
12 
13 namespace fst {
14 namespace script {
15 
16 FarType GetFarType(const string &str);
17 
18 bool GetFarEntryType(const string &str, FarEntryType *entry_type);
19 
20 bool GetFarTokenType(const string &str, FarTokenType *token_type);
21 
22 void ExpandArgs(int argc, char **argv, int *argcp, char ***argvp);
23 
24 } // namespace script
25 
26 string GetFarTypeString(FarType type);
27 
28 } // namespace fst
29 
30 #endif // FST_EXTENSIONS_FAR_GETTERS_H_
FarType GetFarType(const string &str)
Definition: getters.cc:19
void ExpandArgs(int argc, char **argv, int *argcp, char ***argvp)
Definition: getters.cc:55
bool GetFarTokenType(const string &str, FarTokenType *token_type)
Definition: getters.cc:42
FarTokenType
Definition: far.h:23
FarType
Definition: far.h:71
string GetFarTypeString(FarType type)
Definition: getters.cc:60
bool GetFarEntryType(const string &str, FarEntryType *entry_type)
Definition: getters.cc:31
FarEntryType
Definition: far.h:21