~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dtcollation.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-29 12:04:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110329120436-vozkuer8vqgh027p
Always call assert()

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_DTCOLLATION_H
21
 
#define DRIZZLED_DTCOLLATION_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/definitions.h>
24
 
 
25
 
namespace drizzled
 
23
#include <drizzled/visibility.h>
 
24
 
 
25
namespace drizzled {
 
26
 
 
27
class DRIZZLED_API DTCollation
26
28
{
27
 
 
28
 
class Item;
29
 
typedef struct charset_info_st CHARSET_INFO;
30
 
 
31
 
 
32
 
class DTCollation {
33
29
public:
34
 
  const CHARSET_INFO *collation;
 
30
  const charset_info_st *collation;
35
31
  enum Derivation derivation;
36
32
 
37
 
  DTCollation();
38
 
  DTCollation(const CHARSET_INFO * const collation_arg,
39
 
              Derivation derivation_arg);
 
33
  DRIZZLED_LOCAL DTCollation();
 
34
  DRIZZLED_LOCAL DTCollation(const charset_info_st * const collation_arg,
 
35
                             Derivation derivation_arg);
40
36
  void set(DTCollation &dt);
41
 
  void set(const CHARSET_INFO * const collation_arg,
 
37
  void set(const charset_info_st * const collation_arg,
42
38
           Derivation derivation_arg);
43
 
  void set(const CHARSET_INFO * const collation_arg);
 
39
  void set(const charset_info_st * const collation_arg);
44
40
  void set(Derivation derivation_arg);
45
41
  bool set(DTCollation &dt1, DTCollation &dt2, uint32_t flags= 0);
46
42
 
80
76
  @endcode
81
77
*/
82
78
 
83
 
  bool aggregate(DTCollation &dt, uint32_t flags= 0);
 
79
  DRIZZLED_LOCAL bool aggregate(DTCollation &dt, uint32_t flags= 0);
84
80
 
85
 
  const char *derivation_name() const;
 
81
  DRIZZLED_LOCAL const char *derivation_name() const;
86
82
 
87
83
};
88
84
 
140
136
 
141
137
} /* namespace drizzled */
142
138
 
143
 
#endif /* DRIZZLED_DTCOLLATION_H */