FST  openfst-1.7.2
OpenFst Library
convert.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/fst-class.h>
5 #include <fst/script/convert.h>
7 
8 namespace fst {
9 namespace script {
10 
11 FstClass *Convert(const FstClass &ifst, const string &new_type) {
12  ConvertInnerArgs iargs(ifst, new_type);
13  ConvertArgs args(iargs);
14  Apply<Operation<ConvertArgs>>("Convert", ifst.ArcType(), &args);
15  return args.retval;
16 }
17 
21 
22 } // namespace script
23 } // namespace fst
std::pair< const FstClass &, const string & > ConvertInnerArgs
Definition: convert.h:18
const string & ArcType() const final
Definition: fst-class.h:290
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void Convert(ConvertArgs *args)
Definition: convert.h:23