~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
26
 
#include "drizzled/global_charset_info.h"
 
26
#include <drizzled/global_charset_info.h>
27
27
 
28
28
#include <string>
29
29
 
 
30
#include <drizzled/visibility.h>
 
31
 
30
32
namespace drizzled
31
33
{
32
34
 
33
35
/**
34
36
 * Class representing a BLOB data type column
35
37
 */
36
 
class Field_blob :public Field_str {
 
38
class DRIZZLED_API Field_blob :
 
39
  public Field_str
 
40
{
37
41
protected:
38
42
  String value;                         // For temporaries
39
43
public:
73
77
  int  store(double nr);
74
78
  int  store(int64_t nr, bool unsigned_val);
75
79
 
76
 
  double val_real(void);
77
 
  int64_t val_int(void);
78
 
  String *val_str(String*,String *);
79
 
  my_decimal *val_decimal(my_decimal *);
 
80
  double val_real(void) const;
 
81
  int64_t val_int(void) const;
 
82
  String *val_str(String*,String *) const;
 
83
  type::Decimal *val_decimal(type::Decimal *) const;
80
84
  int cmp_max(const unsigned char *, const unsigned char *, uint32_t max_length);
81
85
  int cmp(const unsigned char *a,const unsigned char *b)
82
86
    { return cmp_max(a, b, UINT32_MAX); }
128
132
  */
129
133
  uint32_t get_packed_size(const unsigned char *ptr_arg, bool low_byte_first);
130
134
 
131
 
  uint32_t get_length(uint32_t row_offset= 0);
132
 
  uint32_t get_length(const unsigned char *ptr, bool low_byte_first);
133
 
  uint32_t get_length(const unsigned char *ptr_arg);
 
135
  DRIZZLED_API uint32_t get_length(uint32_t row_offset= 0) const;
 
136
  DRIZZLED_API uint32_t get_length(const unsigned char *ptr, bool low_byte_first) const;
 
137
  DRIZZLED_API uint32_t get_length(const unsigned char *ptr_arg) const;
134
138
  void put_length(unsigned char *pos, uint32_t length);
135
139
  inline void get_ptr(unsigned char **str)
136
140
    {