~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/str/strfunc.h

  • Committer: Monty Taylor
  • Date: 2008-11-15 18:39:51 UTC
  • mto: (584.1.7 devel)
  • mto: This revision was merged to the branch mainline in revision 588.
  • Revision ID: monty@inaugust.com-20081115183951-jo2v3abwdu24lnwq
Split out hybrid_type_traits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTION_STR_STRFUNC_H
21
 
#define DRIZZLED_FUNCTION_STR_STRFUNC_H
22
 
 
23
 
#include <drizzled/function/func.h>
24
 
 
25
 
namespace drizzled
26
 
{
 
20
#ifndef DRIZZLED_FUNCTIONS_STR_H
 
21
#define DRIZZLED_FUNCTIONS_STR_H
27
22
 
28
23
/* This file defines all string functions */
29
24
 
30
 
class DRIZZLED_API Item_str_func :
31
 
  public Item_func
 
25
 
 
26
class Item_str_func :public Item_func
32
27
{
33
28
public:
34
29
  Item_str_func() :Item_func() { decimals=NOT_FIXED_DEC; }
38
33
  Item_str_func(Item *a,Item *b,Item *c,Item *d) :Item_func(a,b,c,d) {decimals=NOT_FIXED_DEC; }
39
34
  Item_str_func(Item *a,Item *b,Item *c,Item *d, Item* e) :Item_func(a,b,c,d,e) {decimals=NOT_FIXED_DEC; }
40
35
  Item_str_func(List<Item> &list) :Item_func(list) {decimals=NOT_FIXED_DEC; }
41
 
  virtual ~Item_str_func();
42
36
  int64_t val_int();
43
37
  double val_real();
44
 
  type::Decimal *val_decimal(type::Decimal *);
 
38
  my_decimal *val_decimal(my_decimal *);
45
39
  enum Item_result result_type () const { return STRING_RESULT; }
46
40
  void left_right_max_length();
47
41
  bool fix_fields(Session *session, Item **ref);
48
42
};
49
43
 
50
 
} /* namespace drizzled */
51
 
 
52
 
#endif /* DRIZZLED_FUNCTION_STR_STRFUNC_H */
 
44
#endif /* DRIZZLED_FUNCTIONS_STR_H */