# Collation.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright (c) 2001-2006
    00003  *     DecisionSoft Limited. All rights reserved.
    00004  * Copyright (c) 2004-2006
    00005  *     Progress Software Corporation. All rights reserved.
    00006  * Copyright (c) 2004-2006
    00007  *     Oracle. All rights reserved.
    00008  *
    00009  * See the file LICENSE for redistribution information.
    00010  *
    00011  * $Id: Collation.hpp,v 1.8 2006/11/01 16:37:11 jpcs Exp $
    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_)