FST  openfst-1.7.7
OpenFst Library
info.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 #ifndef FST_SCRIPT_INFO_H_
5 #define FST_SCRIPT_INFO_H_
6 
7 #include <string>
8 #include <tuple>
9 
10 #include <fst/script/arg-packs.h>
11 #include <fst/script/fst-class.h>
12 #include <fst/script/info-impl.h>
13 
14 namespace fst {
15 namespace script {
16 
17 using InfoArgs = std::tuple<const FstClass &, bool, const std::string &,
18  const std::string &, bool>;
19 
20 template <class Arc>
21 void Info(InfoArgs *args) {
22  const Fst<Arc> &fst = *std::get<0>(*args).GetFst<Arc>();
23  const FstInfo info(fst, std::get<1>(*args), std::get<2>(*args),
24  std::get<3>(*args), std::get<4>(*args));
25  info.Info();
26 }
27 
28 void Info(const FstClass &fst, bool test_properties,
29  const std::string &arc_filter, const std::string &info_type,
30  bool verify);
31 
32 } // namespace script
33 } // namespace fst
34 
35 #endif // FST_SCRIPT_INFO_H_
void Info(InfoArgs *args)
Definition: info.h:21
std::tuple< const FstClass &, bool, const std::string &, const std::string &, bool > InfoArgs
Definition: info.h:18