~stewart/drizzle/use-catalog-for-path

« back to all changes in this revision

Viewing changes to drizzled/field/str.h

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace drizzled
28
28
{
29
29
 
30
 
typedef struct charset_info_st CHARSET_INFO;
31
 
 
32
30
/* base class for all string related classes */
33
31
 
34
32
class DRIZZLED_API Field_str :
35
33
  public Field
36
34
{
37
35
protected:
38
 
  const CHARSET_INFO *field_charset;
 
36
  const charset_info_st *field_charset;
39
37
  enum Derivation field_derivation;
40
38
  int  report_if_important_data(const char *ptr, const char *end);
41
39
public:
44
42
            unsigned char *null_ptr_arg,
45
43
            unsigned char null_bit_arg,
46
44
            const char *field_name_arg,
47
 
            const CHARSET_INFO * const charset);
 
45
            const charset_info_st * const charset);
48
46
  Item_result result_type () const { return STRING_RESULT; }
49
47
  uint32_t decimals() const { return NOT_FIXED_DEC; }
50
48
 
52
50
  int  store(double nr);
53
51
  int  store(int64_t nr, bool unsigned_val)=0;
54
52
  int  store_decimal(const type::Decimal *);
55
 
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const cs)=0;
 
53
  int  store(const char *to,uint32_t length, const charset_info_st * const cs)=0;
56
54
 
57
55
  uint32_t size_of() const { return sizeof(*this); }
58
 
  const CHARSET_INFO *charset(void) const { return field_charset; }
59
 
  void set_charset(const CHARSET_INFO * const charset_arg)
 
56
  const charset_info_st *charset(void) const { return field_charset; }
 
57
  void set_charset(const charset_info_st * const charset_arg)
60
58
  { field_charset= charset_arg; }
61
59
  enum Derivation derivation(void) const { return field_derivation; }
62
60
  virtual void set_derivation(enum Derivation derivation_arg)
99
97
                             const char *well_formed_error_pos,
100
98
                             const char *cannot_convert_error_pos,
101
99
                             const char *end,
102
 
                             const CHARSET_INFO * const cs);
 
100
                             const charset_info_st * const cs);
103
101
 
104
102
 
105
103
} /* namespace drizzled */