~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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
 
#pragma once
 
21
#ifndef DRIZZLED_FIELD_DOUBLE_H
 
22
#define DRIZZLED_FIELD_DOUBLE_H
22
23
 
23
24
#include <drizzled/field/real.h>
24
25
 
54
55
    {not_fixed= not_fixed_arg; }
55
56
  enum_field_types type() const { return DRIZZLE_TYPE_DOUBLE;}
56
57
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_DOUBLE; }
57
 
  int  store(const char *to,uint32_t length, const charset_info_st * const charset);
 
58
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const charset);
58
59
  int  store(double nr);
59
60
  int  store(int64_t nr, bool unsigned_val);
60
61
  int reset(void) { memset(ptr, 0, sizeof(double)); return 0; }
61
 
  double val_real(void) const;
62
 
  int64_t val_int(void) const;
63
 
  String *val_str(String*,String *) const;
 
62
  double val_real(void);
 
63
  int64_t val_int(void);
 
64
  String *val_str(String*,String *);
64
65
  int cmp(const unsigned char *,const unsigned char *);
65
66
  void sort_string(unsigned char *buff,uint32_t length);
66
67
  uint32_t pack_length() const { return sizeof(double); }
69
70
 
70
71
} /* namespace drizzled */
71
72
 
 
73
#endif /* DRIZZLED_FIELD_DOUBLE_H */
72
74