17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_DTCOLLATION_H
21
#define DRIZZLED_DTCOLLATION_H
23
22
#include <drizzled/definitions.h>
23
#include <drizzled/visibility.h>
29
typedef struct charset_info_st CHARSET_INFO;
29
struct charset_info_st;
31
class DRIZZLED_API DTCollation
34
const CHARSET_INFO *collation;
34
const charset_info_st *collation;
35
35
enum Derivation derivation;
38
DTCollation(const CHARSET_INFO * const collation_arg,
39
Derivation derivation_arg);
37
DRIZZLED_LOCAL DTCollation();
38
DRIZZLED_LOCAL DTCollation(const charset_info_st * const collation_arg,
39
Derivation derivation_arg);
40
40
void set(DTCollation &dt);
41
void set(const CHARSET_INFO * const collation_arg,
41
void set(const charset_info_st * const collation_arg,
42
42
Derivation derivation_arg);
43
void set(const CHARSET_INFO * const collation_arg);
43
void set(const charset_info_st * const collation_arg);
44
44
void set(Derivation derivation_arg);
45
45
bool set(DTCollation &dt1, DTCollation &dt2, uint32_t flags= 0);
83
bool aggregate(DTCollation &dt, uint32_t flags= 0);
83
DRIZZLED_LOCAL bool aggregate(DTCollation &dt, uint32_t flags= 0);
85
const char *derivation_name() const;
85
DRIZZLED_LOCAL const char *derivation_name() const;