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.tunewpwrite.hpp>
Public Member Functions | |
TuneWpWriteFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="") | |
bool | run (Data &d) |
Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. PDAs not supported. 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 TuneWpWriteFstTask * | 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.tunewpwrite.hpp.
|
inline |
Definition at line 51 of file task.tunewpwrite.hpp.
|
inlinestatic |
|
inlinevirtual |
Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. PDAs not supported.
&d | data object |
Implements ucam::util::TaskInterface< Data >.
Definition at line 84 of file task.tunewpwrite.hpp.