~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/str.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field.h>
25
25
 
 
26
#include "drizzled/visibility.h"
 
27
 
26
28
namespace drizzled
27
29
{
28
30
 
30
32
 
31
33
/* base class for all string related classes */
32
34
 
33
 
class Field_str :public Field {
 
35
class DRIZZLED_API Field_str :
 
36
  public Field
 
37
{
34
38
protected:
35
39
  const CHARSET_INFO *field_charset;
36
40
  enum Derivation field_derivation;
48
52
  using Field::store;
49
53
  int  store(double nr);
50
54
  int  store(int64_t nr, bool unsigned_val)=0;
51
 
  int  store_decimal(const my_decimal *);
 
55
  int  store_decimal(const type::Decimal *);
52
56
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const cs)=0;
53
57
 
54
58
  uint32_t size_of() const { return sizeof(*this); }
61
65
  bool binary() const { return field_charset == &my_charset_bin; }
62
66
  uint32_t max_display_length() { return field_length; }
63
67
  friend class CreateField;
64
 
  my_decimal *val_decimal(my_decimal *);
 
68
  type::Decimal *val_decimal(type::Decimal *);
65
69
  virtual bool str_needs_quotes() { return true; }
66
70
  uint32_t max_data_length() const;
67
71
};