FST  openfst-1.7.2
OpenFst Library
info.cc
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 #include <string>
5 
6 #include <fst/script/fst-class.h>
7 #include <fst/script/info.h>
9 
10 namespace fst {
11 namespace script {
12 
13 void PrintFstInfo(const FstClass &fst, bool test_properties,
14  const string &arc_filter, const string &info_type, bool pipe,
15  bool verify) {
16  InfoArgs args(fst, test_properties, arc_filter, info_type, pipe, verify);
17  Apply<Operation<InfoArgs>>("PrintFstInfo", fst.ArcType(), &args);
18 }
19 
20 void GetFstInfo(const FstClass &fst, bool test_properties,
21  const string &arc_filter, const string &info_type, bool verify,
22  FstInfo *result) {
23  GetInfoArgs args(fst, test_properties, arc_filter, info_type, verify, result);
24  Apply<Operation<GetInfoArgs>>("GetFstInfo", fst.ArcType(), &args);
25 }
26 
30 
34 
35 } // namespace script
36 } // namespace fst
void GetFstInfo(GetInfoArgs *args)
Definition: info.h:37
const string & ArcType() const final
Definition: fst-class.h:290
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void PrintFstInfo(InfoArgs *args)
Definition: info.h:21
std::tuple< const FstClass &, bool, const string &, const string &, bool, bool > InfoArgs
Definition: info.h:18
std::tuple< const FstClass &, bool, const string &, const string &, bool, FstInfo * > GetInfoArgs
Definition: info.h:34