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