FST  openfst-1.7.1
OpenFst Library
draw.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 <ostream>
5 #include <string>
6 
7 #include <fst/script/draw.h>
8 #include <fst/script/fst-class.h>
10 
11 namespace fst {
12 namespace script {
13 
14 void DrawFst(const FstClass &fst, const SymbolTable *isyms,
15  const SymbolTable *osyms, const SymbolTable *ssyms, bool accep,
16  const string &title, float width, float height, bool portrait,
17  bool vertical, float ranksep, float nodesep, int fontsize,
18  int precision, const string &float_format, bool show_weight_one,
19  std::ostream *ostrm, const string &dest) {
20  FstDrawerArgs args(fst, isyms, osyms, ssyms, accep, title, width, height,
21  portrait, vertical, ranksep, nodesep, fontsize, precision,
22  float_format, show_weight_one, ostrm, dest);
23  Apply<Operation<FstDrawerArgs>>("DrawFst", fst.ArcType(), &args);
24 }
25 
29 
30 } // namespace script
31 } // namespace fst
const string & ArcType() const final
Definition: fst-class.h:290
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void DrawFst(FstDrawerArgs *args)
Definition: draw.h:66