~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.h

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

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_DECIMAL_H
22
 
#define DRIZZLED_FIELD_DECIMAL_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/field/num.h>
25
24
 
65
64
  int  reset(void);
66
65
  bool store_value(const type::Decimal *decimal_value);
67
66
  void set_value_on_overflow(type::Decimal *decimal_value, bool sign);
68
 
  int  store(const char *to, uint32_t length, const CHARSET_INFO * const charset);
 
67
  int  store(const char *to, uint32_t length, const charset_info_st * const charset);
69
68
  int  store(double nr);
70
69
  int  store(int64_t nr, bool unsigned_val);
71
70
  int store_time(type::Time &ltime, type::timestamp_t t_type);
72
71
  int  store_decimal(const type::Decimal *);
73
 
  double val_real(void);
74
 
  int64_t val_int(void);
75
 
  type::Decimal *val_decimal(type::Decimal *);
76
 
  String *val_str(String*, String *);
 
72
  double val_real(void) const;
 
73
  int64_t val_int(void) const;
 
74
  type::Decimal *val_decimal(type::Decimal *) const;
 
75
  String *val_str(String*, String *) const;
77
76
  int cmp(const unsigned char *, const unsigned char *);
78
77
  void sort_string(unsigned char *buff, uint32_t length);
79
78
  bool zero_pack() const { return 0; }
89
88
 
90
89
} /* namespace drizzled */
91
90
 
92
 
#endif /* DRIZZLED_FIELD_DECIMAL_H */
93
91