~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 * The store_xxx() methods take various input and convert
67
67
 * the input into the raw bytes stored in the ptr member variable.
68
68
 */
69
 
class DRIZZLED_API Field
 
69
class DRIZZLED_API Field : boost::noncopyable
70
70
{
71
 
  /* Prevent use of these */
72
 
  Field(const Field&);
73
 
  void operator=(Field &);
74
 
 
75
71
public:
76
72
  unsigned char *ptr; /**< Position to field in record. Stores raw field value */
77
73
  unsigned char *null_ptr; /**< Byte where null_bit is */
339
335
  virtual int key_cmp(const unsigned char *str, uint32_t length);
340
336
  virtual uint32_t decimals() const;
341
337
 
342
 
  /*
343
 
    Caller beware: sql_type can change str.Ptr, so check
344
 
    ptr() to see if it changed if you are using your own buffer
345
 
    in str and restore it with set() if needed
346
 
  */
347
 
  virtual void sql_type(String &str) const =0;
348
 
 
349
338
  // For new field
350
339
  virtual uint32_t size_of() const =0;
351
340