ULAPI  8.0
ulpartofspeechcategory.h
1 
10 #ifndef ULPARTOFSPEECHCATEGORY_H
11 #define ULPARTOFSPEECHCATEGORY_H
12 
13 #include "ulenum.h"
14 
24 {
25 public:
27  static const ULPartOfSpeechCategory& Any;
43 
44 
47  ULPartOfSpeechCategory(int id);
48  ULPartOfSpeechCategory(const char *otherStringID);
49  virtual ~ULPartOfSpeechCategory();
50 
51  virtual void clear();
53  ULPartOfSpeechCategory& operator=(int otherID);
54  ULPartOfSpeechCategory& operator=(const char *otherStringID);
55 
56  bool operator==(const ULPartOfSpeechCategory& other) const;
57  bool operator==(const char *otherStringID) const;
58  bool operator!=(const ULPartOfSpeechCategory& other) const;
59  bool operator!=(const char *otherStringID) const;
60  bool operator<(const ULPartOfSpeechCategory& other) const;
61  bool operator<(const char *otherStringID) const;
62 
63  static int getEnumeratedValueCount();
64  static const ULPartOfSpeechCategory& getInstance(int id);
65  bool isKindOf(const ULPartOfSpeechCategory& other) const;
67 
68 
69 
70 private:
71  static int nEnumeratedValues;
72  static ULVector<const ULPartOfSpeechCategory *> enumeratedValueVector;
73  ULPartOfSpeechCategory(const char *stringID, const char *displayString);
74 };
75 
76 
77 #endif
78