~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.h

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

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_DOUBLE_H
22
 
#define DRIZZLED_FIELD_DOUBLE_H
 
21
#ifndef DRIZZLE_SERVER_FIELD_DOUBLE
 
22
#define DRIZZLE_SERVER_FIELD_DOUBLE
23
23
 
24
24
#include <drizzled/field/real.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
class Field_double :public Field_real {
30
27
public:
31
 
 
32
 
  using Field::store;
33
 
  using Field::val_int;
34
 
  using Field::val_str;
35
 
  using Field::cmp;
36
 
 
37
28
  Field_double(unsigned char *ptr_arg, uint32_t len_arg,
38
29
               unsigned char *null_ptr_arg,
39
30
               unsigned char null_bit_arg,
65
56
  int cmp(const unsigned char *,const unsigned char *);
66
57
  void sort_string(unsigned char *buff,uint32_t length);
67
58
  uint32_t pack_length() const { return sizeof(double); }
 
59
  uint32_t row_pack_length() { return pack_length(); }
68
60
  void sql_type(String &str) const;
 
61
private:
 
62
  int do_save_field_metadata(unsigned char *first_byte);
69
63
};
70
64
 
71
 
} /* namespace drizzled */
72
 
 
73
 
#endif /* DRIZZLED_FIELD_DOUBLE_H */
 
65
#endif
74
66