~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/dtcollation.h

Refactor

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>
 
23
#include <drizzled/visibility.h>
24
24
 
25
25
namespace drizzled
26
26
{
27
27
 
28
28
class Item;
29
 
typedef struct charset_info_st CHARSET_INFO;
30
 
 
31
 
 
32
 
class DTCollation {
 
29
struct charset_info_st;
 
30
 
 
31
class DRIZZLED_API DTCollation
 
32
{
33
33
public:
34
 
  const CHARSET_INFO *collation;
 
34
  const charset_info_st *collation;
35
35
  enum Derivation derivation;
36
36
 
37
 
  DTCollation();
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);
46
46
 
80
80
  @endcode
81
81
*/
82
82
 
83
 
  bool aggregate(DTCollation &dt, uint32_t flags= 0);
 
83
  DRIZZLED_LOCAL bool aggregate(DTCollation &dt, uint32_t flags= 0);
84
84
 
85
 
  const char *derivation_name() const;
 
85
  DRIZZLED_LOCAL const char *derivation_name() const;
86
86
 
87
87
};
88
88
 
140
140
 
141
141
} /* namespace drizzled */
142
142
 
143
 
#endif /* DRIZZLED_DTCOLLATION_H */