~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.h

  • Committer: Monty Taylor
  • Date: 2009-03-02 23:14:32 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090302231432-i35xehp7uzo6hjjw
Updated build system to use new version numbering. Just remember to run ./config/autorun.sh before running make distcheck for release and all should be peachy.

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
28
 
59
56
  int  store(double nr);
60
57
  int  store(int64_t nr, bool unsigned_val);
61
58
  int reset(void) { memset(ptr, 0, sizeof(double)); return 0; }
62
 
  double val_real(void) const;
63
 
  int64_t val_int(void) const;
64
 
  String *val_str(String*,String *) const;
 
59
  double val_real(void);
 
60
  int64_t val_int(void);
 
61
  String *val_str(String*,String *);
65
62
  int cmp(const unsigned char *,const unsigned char *);
66
63
  void sort_string(unsigned char *buff,uint32_t length);
67
64
  uint32_t pack_length() const { return sizeof(double); }
 
65
  uint32_t row_pack_length() { return pack_length(); }
68
66
  void sql_type(String &str) const;
 
67
private:
 
68
  int do_save_field_metadata(unsigned char *first_byte);
69
69
};
70
70
 
71
 
} /* namespace drizzled */
72
 
 
73
 
#endif /* DRIZZLED_FIELD_DOUBLE_H */
 
71
#endif
74
72