|
ULAPI
8.0
|
ULWorker is the abstract parent for the classes that provide core ULAPI services like number translation, conjugation, word look-up, etc. More...
#include <ulworker.h>
Public Member Functions | |
| ULWorker () | |
| virtual | ~ULWorker () |
| virtual bool | isServiceAvailable (const ULServiceDescriptor &service)=0 |
| virtual void | getAvailableServices (ULList< ULServiceDescriptor > &serviceList)=0 |
| virtual void | setCancelOperation (bool shouldCancel) |
| virtual bool | shouldCancelOperation () const |
ULWorker is the abstract parent for the classes that provide core ULAPI services like number translation, conjugation, word look-up, etc.
ULWorker objects also have a "cancelOperation" boolean attribute that enables clients of the worker to cancel time-consuming operations (e.g. stemming or full conjugations). A typical usage pattern would look like this:
| ULWorker::ULWorker | ( | ) |
|
inlinevirtual |
|
pure virtual |
| [out] | serviceList | Used to return a list of all the services this ULWorker can provide. |
Implemented in ULPartOfSpeechTagger, ULInflector, ULDissector, ULNumberTranslator, ULJSONDictionaryDataSource, ULConjugator, ULStemmer, ULPluralizer, ULSingularizer, and ULDefiner.
|
pure virtual |
| service | The desired service. |
Implemented in ULPartOfSpeechTagger, ULInflector, ULDissector, ULNumberTranslator, ULJSONDictionaryDataSource, ULConjugator, ULStemmer, ULPluralizer, ULSingularizer, and ULDefiner.
|
virtual |
Setter for the long-operation cancellation boolean attribute.
| [in] | set | to true if |
Reimplemented in ULStemmer.
|
virtual |
1.8.2