00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #if !defined(AFXQ_COLLATION_H__6BA76C4A_0A5B_480B_9870_86A89A118100__INCLUDED_)
00015 #define AFXQ_COLLATION_H__6BA76C4A_0A5B_480B_9870_86A89A118100__INCLUDED_
00016
00017 #include <xqilla/framework/XQillaExport.hpp>
00018 #include <xercesc/util/XercesDefs.hpp>
00019
00020 class Sequence;
00021 class DynamicContext;
00022
00023 class XQILLA_API Collation
00024 {
00025 public:
00026 virtual ~Collation() {};
00027
00028 virtual const XMLCh* getCollationName() const = 0;
00029 virtual Sequence sort(Sequence data, const DynamicContext* context) const = 0;
00030 virtual int compare(const XMLCh* const string1, const XMLCh* const string2) const = 0;
00031
00032 protected:
00033 Collation() {}
00034 };
00035
00036 #endif // !defined(AFXQ_COLLATION_H__6BA76C4A_0A5B_480B_9870_86A89A118100__INCLUDED_)