FST  openfst-1.7.7
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/convert.h>
5 
7 
8 namespace fst {
9 namespace script {
10 
11 FstClass *Convert(const FstClass &ifst, const std::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 
19 
20 } // namespace script
21 } // namespace fst
REGISTER_FST_OPERATION_3ARCS(Compress, CompressArgs)
const std::string & ArcType() const final
Definition: fst-class.h:300
std::pair< const FstClass &, const std::string & > ConvertInnerArgs
Definition: convert.h:18
void Convert(ConvertArgs *args)
Definition: convert.h:23