Cambridge SMT System
ucam::fsttools::WriteFstTask< Data, Arc > Class Template Reference

Convenience class that inherits Taskinterface behaviour and writes an fst to [file] using a key defined in the constructor. The key is used to access the registry object (i.e. actual program option telling where to write the fst) and a pointer in the data object, telling where to read the fst from. More...

#include <task.writefst.hpp>

Inheritance diagram for ucam::fsttools::WriteFstTask< Data, Arc >:
Collaboration diagram for ucam::fsttools::WriteFstTask< Data, Arc >:

Public Member Functions

 WriteFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="")
 Constructor with RegistryPO object. More...
 
bool run (Data &d)
 Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. If parentheses exist, then the will be dumped too, with extra extension .parens. More...
 
- Public Member Functions inherited from ucam::util::TaskInterface< Data >
 TaskInterface ()
 Constructor. More...
 
virtual ~TaskInterface ()
 
bool chainrun (Data &d)
 Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More...
 
bool operator() (Data &d)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Static Public Member Functions

static WriteFstTaskinit (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="")
 

Detailed Description

template<class Data, class Arc = fst::StdArc>
class ucam::fsttools::WriteFstTask< Data, Arc >

Convenience class that inherits Taskinterface behaviour and writes an fst to [file] using a key defined in the constructor. The key is used to access the registry object (i.e. actual program option telling where to write the fst) and a pointer in the data object, telling where to read the fst from.

Definition at line 36 of file task.writefst.hpp.

Constructor & Destructor Documentation

template<class Data , class Arc = fst::StdArc>
ucam::fsttools::WriteFstTask< Data, Arc >::WriteFstTask ( const ucam::util::RegistryPO rg,
const std::string &  fstkey,
const std::string &  readfstkey = "" 
)
inline

Constructor with RegistryPO object.

Definition at line 49 of file task.writefst.hpp.

Member Function Documentation

template<class Data , class Arc = fst::StdArc>
static WriteFstTask* ucam::fsttools::WriteFstTask< Data, Arc >::init ( const ucam::util::RegistryPO rg,
const std::string &  fstkey,
const std::string &  readfstkey = "" 
)
inlinestatic

Definition at line 58 of file task.writefst.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Data , class Arc = fst::StdArc>
bool ucam::fsttools::WriteFstTask< Data, Arc >::run ( Data &  d)
inlinevirtual

Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. If parentheses exist, then the will be dumped too, with extra extension .parens.

Parameters
&ddata object
Returns
false (does not break in any case the chain of tasks)

Implements ucam::util::TaskInterface< Data >.

Definition at line 75 of file task.writefst.hpp.


The documentation for this class was generated from the following file: