~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/real.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 10:31:37 UTC
  • mto: (2247.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323103137-lwevis2tfchgu18u
Propogate return void

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_REAL_H
22
 
#define DRIZZLED_FIELD_REAL_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/field/num.h>
25
24
 
42
41
               field_name_arg, dec_arg, zero_arg, unsigned_arg),
43
42
    not_fixed(dec_arg >= NOT_FIXED_DEC)
44
43
    {}
45
 
  int store_decimal(const my_decimal *);
46
 
  my_decimal *val_decimal(my_decimal *);
 
44
  int store_decimal(const type::Decimal *);
 
45
  type::Decimal *val_decimal(type::Decimal *) const;
47
46
  int truncate(double *nr, double max_length);
48
47
  uint32_t max_display_length() { return field_length; }
49
48
  uint32_t size_of() const { return sizeof(*this); }
55
54
 
56
55
} /* namespace drizzled */
57
56
 
58
 
#endif /* DRIZZLED_FIELD_REAL_H */