ULAPI  8.0
ullanguage.h
1 
10 #ifndef ULLANGUAGE_H
11 #define ULLANGUAGE_H
12 
13 #include "ulenum.h"
14 
21 class ULLanguage : public ULEnum
22 {
23 public:
24  static const ULLanguage& NoLanguage;
25  static const ULLanguage& Any;
26  static const ULLanguage& English;
27  static const ULLanguage& French;
28  static const ULLanguage& Spanish;
29  static const ULLanguage& German;
30  static const ULLanguage& Italian;
31  static const ULLanguage& Portuguese;
32  static const ULLanguage& Norwegian;
33  static const ULLanguage& Latin;
34  static const ULLanguage& Esperanto;
35  static const ULLanguage& Russian;
36  static const ULLanguage& Dutch;
37  static const ULLanguage& Polish;
38  static const ULLanguage& Chinese;
39  static const ULLanguage& Mandarin;
40  static const ULLanguage& Cantonese;
41  static const ULLanguage& Klingon;
42  static const ULLanguage& Turkish;
43  static const ULLanguage& Haitian;
44  static const ULLanguage& Swedish;
45  static const ULLanguage& Danish;
46  static const ULLanguage& Japanese;
47  static const ULLanguage& Hindi;
48  static const ULLanguage& Korean;
49  static const ULLanguage& Icelandic;
50  static const ULLanguage& SwissGerman;
51  static const ULLanguage& Romanian;
52  static const ULLanguage& Lithuanian;
53  static const ULLanguage& Bulgarian;
54  static const ULLanguage& Latvian;
55  static const ULLanguage& Arabic;
56  static const ULLanguage& Hebrew;
57  static const ULLanguage& Swahili;
58  static const ULLanguage& Urdu;
59  static const ULLanguage& Sanskrit;
60  static const ULLanguage& Persian;
61  static const ULLanguage& Thai;
62  static const ULLanguage& Vietnamese;
63  static const ULLanguage& Synonyms;
64 
65 
66  ULLanguage();
67  ULLanguage(const ULLanguage& other);
68  ULLanguage(int id);
69  ULLanguage(const char *otherStringID);
70  virtual ~ULLanguage();
71 
72  virtual void clear();
73  ULLanguage& operator=(const ULLanguage& other);
74  ULLanguage& operator=(int otherID);
75  ULLanguage& operator=(const char *otherStringID);
76 
77  bool operator==(const ULLanguage& other) const;
78  bool operator==(const char *otherStringID) const;
79  bool operator!=(const ULLanguage& other) const;
80  bool operator!=(const char *otherStringID) const;
81  bool operator<(const ULLanguage& other) const;
82  bool operator<(const char *otherStringID) const;
83 
84  static int getEnumeratedValueCount();
85  static const ULLanguage& getInstance(int id);
86  const char *getTwoLetterISOCode() const;
87  const char *getThreeLetterISOCode() const;
88 
89 
90 
91 private:
92  static int nEnumeratedValues;
93  static ULVector<const ULLanguage *> enumeratedValueVector;
94  ULLanguage(const char *stringID, const char *displayString);
95  const char *twoLetterISOCode;
96  const char *threeLetterISOCode;
97  ULLanguage(const char *twoLetterISOCode,
98  const char *threeLetterISOCode,
99  const char *displayString);
100 };
101 
102 
103 #endif
104