~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int32.h

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_FIELD_INT32_H
22
 
#define DRIZZLED_FIELD_INT32_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/field/num.h>
25
24
 
58
57
  enum_field_types type() const { return DRIZZLE_TYPE_LONG;}
59
58
  enum ha_base_keytype key_type() const
60
59
  { return unsigned_flag ? HA_KEYTYPE_ULONG_INT : HA_KEYTYPE_LONG_INT; }
61
 
  int store(const char *to,uint32_t length, const CHARSET_INFO * const charset);
 
60
  int store(const char *to,uint32_t length, const charset_info_st * const charset);
62
61
  int store(double nr);
63
62
  int store(int64_t nr, bool unsigned_val);
64
63
  int reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; return 0; }
65
 
  double val_real(void);
66
 
  int64_t val_int(void);
67
 
  String *val_str(String*,String *);
 
64
  double val_real(void) const;
 
65
  int64_t val_int(void) const;
 
66
  String *val_str(String*,String *) const;
68
67
  int cmp(const unsigned char *,const unsigned char *);
69
68
  void sort_string(unsigned char *buff,uint32_t length);
70
69
  uint32_t pack_length() const { return 4; }
82
81
} /* namespace field */
83
82
} /* namespace drizzled */
84
83
 
85
 
#endif /* DRIZZLED_FIELD_INT32_H */
86
84