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