Cambridge SMT System
|
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>
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) |
TaskInterface & | appendTask (TaskInterface *t) |
Appends a task class. If there is no task, append here, otherwise delegate in next task. More... | |
TaskInterface & | operator() (TaskInterface *t) |
TaskInterface * | getTask () |
Return appended task. More... | |
TaskInterface * | next () |
Static Public Member Functions | |
static WriteFstTask * | init (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="") |
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.
|
inline |
Constructor with RegistryPO object.
Definition at line 49 of file task.writefst.hpp.
|
inlinestatic |
Definition at line 58 of file task.writefst.hpp.
|
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.
&d | data object |
Implements ucam::util::TaskInterface< Data >.
Definition at line 75 of file task.writefst.hpp.