ULAPI  8.0
ulsingularizer.h
1 
7 #ifndef ULSINGULARIZER_H
8 #define ULSINGULARIZER_H
9 
10 #include "ulworker.h"
11 #include "uldissector.h"
12 
17 class ULSingularizer : public ULWorker
18 {
19 public:
21  ULSingularizer(const ULSingularizer& other);
22  virtual ~ULSingularizer();
23 
25  void clear();
26 
27  // Accessors
29  void setDissector(ULDissector *newDissector);
30  const ULLanguage& getLanguage() const;
31 
32  // ULWorker interfaces.
33  virtual bool isServiceAvailable(const ULServiceDescriptor& service);
34  virtual void getAvailableServices(ULList<ULServiceDescriptor>& services);
35 
36  // The core services provided by the singularizer.
37  ULError getSingular(const ULString& word, ULString& singular);
38  ULError getAllSingulars(const ULString& word, ULList<ULString>& singularList);
39 
40 private:
41  ULDissector *dissector;
42 };
43 
44 #endif