ULAPI  8.0
uldictionarydatasource.h
1 
7 #ifndef ULDICTIONARYDATASOURCE_H
8 #define ULDICTIONARYDATASOURCE_H
9 
10 #include "uldictionary.h"
11 #include "uldictionarydescriptor.h"
12 #include "uldatasource.h"
13 #include "ulforesttype.h"
14 #include "ullocalizationrule.h"
15 
16 class ULForester;
17 
41 {
42 public:
43  // Required ULDataSource operations.
44  virtual ULError attach(const ULString& dataSourceIdentifier) = 0;
45  virtual ULError detach() = 0;
46  virtual ULError load() = 0;
47  virtual ULError close() = 0;
48  virtual ULString getDataSourceIdentifier() = 0;
49  virtual ULDataSourceVersion getVersion() = 0;
50 
51  // ULDictionary interfaces.
52  virtual ULError begin(const ULLanguage& searchLanguage,
53  uluint32 indexID,
54  ULDictionaryIterator& iterator) = 0;
55 
56  virtual ULError end(const ULLanguage& searchLanguage,
57  uluint32 indexID,
58  ULDictionaryIterator& iterator) = 0;
59 
60  virtual ULError find(const ULString& s,
61  const ULLanguage& searchLanguage,
62  uluint32 indexID,
63  ULDictionaryIterator& iterator) = 0;
64 
65  // Other ULDictionaryDataSource methods.
66 
67  virtual bool operator==(const ULDictionaryDataSource& dataSource) const = 0;
68 
74 
78  virtual const ULLanguage& getFirstLanguage() = 0;
79 
83  virtual const ULLanguage& getSecondLanguage() = 0;
84 
88  virtual const ULLanguage& getOtherLanguage(const ULLanguage& language) = 0;
89 
94  virtual ULForestType getForestType() = 0;
95 
101  virtual void setForester(ULForester *newForester) = 0;
102 
106  virtual ULForester *getForester() = 0;
107 
118  virtual ULError getFeatureNameList(ULList<ULString>& featureNameList) = 0;
119 
129  virtual ULError getLocalizationRuleList(const ULLanguage& language, ULList<ULLocalizationRule>& localizationRulesList) = 0;
130 
139  virtual bool getULDAttribute(const ULString& key, ULString& value) = 0;
140 
141  // Common index IDs.
143 };
144 
145 #endif
146