ULAPI  8.0
ulnumber.h
1 
10 #ifndef ULNUMBER_H
11 #define ULNUMBER_H
12 
13 #include "ulenum.h"
14 
21 class ULNumber : public ULEnum
22 {
23 public:
24  static const ULNumber& None;
25  static const ULNumber& Any;
26  static const ULNumber& Singular;
27  static const ULNumber& Plural;
28  static const ULNumber& Dual;
29  static const ULNumber& Invariable;
30 
31 
32  ULNumber();
33  ULNumber(const ULNumber& other);
34  ULNumber(int id);
35  ULNumber(const char *otherStringID);
36  virtual ~ULNumber();
37 
38  virtual void clear();
39  ULNumber& operator=(const ULNumber& other);
40  ULNumber& operator=(int otherID);
41  ULNumber& operator=(const char *otherStringID);
42 
43  bool operator==(const ULNumber& other) const;
44  bool operator==(const char *otherStringID) const;
45  bool operator!=(const ULNumber& other) const;
46  bool operator!=(const char *otherStringID) const;
47  bool operator<(const ULNumber& other) const;
48  bool operator<(const char *otherStringID) const;
49 
50  static int getEnumeratedValueCount();
51  static const ULNumber& getInstance(int id);
52 
53 
54 
55 private:
56  static int nEnumeratedValues;
57  static ULVector<const ULNumber *> enumeratedValueVector;
58  ULNumber(const char *stringID, const char *displayString);
59 };
60 
61 
62 #endif
63