ULAPI  8.0
ulfeature.h
1 
7 #ifndef ULFEATURE_H
8 #define ULFEATURE_H
9 
10 #include "ulstring.h"
11 #include "ulfeaturetype.h"
12 
19 class ULFeature
20 {
21 public:
22  ULFeature ();
23  ULFeature (const ULFeature & other);
24  ~ULFeature ();
25 
26  void clear();
27  ULFeature & operator=(const ULFeature & other);
28 
29  bool operator==(const ULFeature & other) const;
30  bool operator!=(const ULFeature & other) const;
31  bool operator<(const ULFeature & other) const;
32 
33  const ULFeatureType& getFeatureType() const;
34  void setFeatureType(const ULFeatureType& newFeatureType);
35  int getIntValue() const;
36  void setIntValue(int newIntValue);
37  bool hasStringValue() const;
38  void getStringValue(ULString& val) const;
39  const ULString& getStringValue() const;
40  void setStringValue(const ULString& newStringValue);
41 
42  ULString getDisplayValue() const;
43 
44 private:
45  ULFeatureType featureType;
46  int intValue;
47  ULString *stringValue;
48 };
49 
50 #endif
51