Cambridge SMT System
|
Convenience class that loads an fst using a key defined in the constructor and delivers it to the data object. More...
#include <task.readfst.hpp>
Public Member Functions | |
ReadFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey) | |
Constructor with RegistryPO object and fstkey to access the registry object. More... | |
bool | run (Data &d) |
Method inherited from TaskInterface. Loads an fst and stores a pointer into Data structure using a key. Will check that the same file hasn't been loaded before. In this case, it just assumes the fst in memory is already valid. More... | |
~ReadFstTask () | |
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 ReadFstTask * | init (const ucam::util::RegistryPO &rg, const std::string &fstkey) |
Static constructor. May return NULL if relevant parameters in registrypo object tell that there will be no use of this object. More... | |
Convenience class that loads an fst using a key defined in the constructor and delivers it to the data object.
Definition at line 33 of file task.readfst.hpp.
|
inline |
Constructor with RegistryPO object and fstkey to access the registry object.
Definition at line 48 of file task.readfst.hpp.
|
inline |
|
inlinestatic |
Static constructor. May return NULL if relevant parameters in registrypo object tell that there will be no use of this object.
Definition at line 56 of file task.readfst.hpp.
|
inlinevirtual |
Method inherited from TaskInterface. Loads an fst and stores a pointer into Data structure using a key. Will check that the same file hasn't been loaded before. In this case, it just assumes the fst in memory is already valid.
&d | data structure in which the null filter is to be stored. |
Implements ucam::util::TaskInterface< Data >.
Definition at line 69 of file task.readfst.hpp.