ULAPI  8.0
ulenum.h
1 
7 #ifndef ULENUM_H
8 #define ULENUM_H
9 
10 #include "ultypes.h"
11 #include "ulstring.h"
12 
38 class ULEnum
39 {
40 public:
41  ULEnum();
42  ULEnum(const ULEnum& other);
43  virtual ~ULEnum();
44 
45  virtual void clear();
46  virtual ULEnum& operator=(const ULEnum& other);
47 
48  operator int () const;
49  uluint32 hash(uluint32 tableSize) const;
50 
51  int getID() const;
52  const char *getStringID() const;
53  virtual const char *getDisplayString() const;
54 
55  static bool isEnumeratedFeature(const ULString& featureName);
56  static uluint32 getRunTimeFeatureID(const ULString& featureName);
57 
58 protected:
59  int id;
60  const char *stringID;
61  const char *displayString;
62 
64 };
65 
66 #endif
67