~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/uuid.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
Remove unused Name_resolution_context::error_reporter

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_UUID_H
22
 
#define DRIZZLED_FIELD_UUID_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/field.h>
25
24
#include <string>
26
25
 
27
 
#include "drizzled/type/uuid.h"
 
26
#include <drizzled/type/uuid.h>
28
27
 
29
28
namespace drizzled
30
29
{
32
31
{
33
32
 
34
33
class Uuid :public Field {
35
 
  const CHARSET_INFO *field_charset;
 
34
  const charset_info_st *field_charset;
36
35
  bool is_set;
37
36
 
38
37
public:
49
48
  uint32_t pack_length() const { return type::Uuid::LENGTH; }
50
49
  uint32_t key_length() const { return type::Uuid::LENGTH; }
51
50
 
52
 
  int store(const char *to, uint32_t length, const CHARSET_INFO * const charset);
 
51
  int store(const char *to, uint32_t length, const charset_info_st * const charset);
53
52
  int store(int64_t nr, bool unsigned_val);
54
 
  double val_real();
55
 
  int64_t val_int();
56
 
  String *val_str(String*,String *);
57
 
  void sql_type(drizzled::String&) const;
 
53
  double val_real() const;
 
54
  int64_t val_int() const;
 
55
  String *val_str(String*,String *) const;
58
56
  int store_decimal(const drizzled::type::Decimal*);
59
57
 
60
58
  Item_result result_type () const { return STRING_RESULT; }
66
64
  inline String *val_str(String *str) { return val_str(str, str); }
67
65
  uint32_t size_of() const { return sizeof(*this); }
68
66
 
69
 
  bool get_date(type::Time &ltime, uint32_t);
70
 
  bool get_time(type::Time &ltime);
 
67
  bool get_date(type::Time &ltime, uint32_t) const;
 
68
  bool get_time(type::Time &ltime) const;
71
69
 
72
70
#ifdef NOT_YET
73
71
  void generate();
83
81
} /* namespace field */
84
82
} /* namespace drizzled */
85
83
 
86
 
#endif /* DRIZZLED_FIELD_UUID_H */
87
84