~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/elt.h

  • Committer: Monty Taylor
  • Date: 2010-12-24 02:13:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101224021305-e3slv1cyjczqorij
Changed the bzrignore file.

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
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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_FUNCTIONS_STR_ELT_H
21
 
#define DRIZZLED_FUNCTIONS_STR_ELT_H
22
 
 
23
 
#include <drizzled/functions/str/strfunc.h> 
 
20
#ifndef PLUGIN_STRING_FUNCTIONS_ELT_H
 
21
#define PLUGIN_STRING_FUNCTIONS_ELT_H
 
22
 
 
23
#include <drizzled/function/str/strfunc.h>
 
24
 
 
25
namespace drizzled
 
26
{
24
27
 
25
28
class Item_func_elt :public Item_str_func
26
29
{
27
30
public:
28
 
  Item_func_elt(List<Item> &list) :Item_str_func(list) {}
 
31
  Item_func_elt() :Item_str_func() {}
29
32
  double val_real();
30
33
  int64_t val_int();
31
34
  String *val_str(String *str);
32
35
  void fix_length_and_dec();
33
36
  const char *func_name() const { return "elt"; }
 
37
  bool check_argument_count(int n) { return n > 1; }
34
38
};
35
39
 
36
 
#endif /* DRIZZLED_FUNCTIONS_STR_ELT_H */
 
40
} /* namespace drizzled */
 
41
 
 
42
#endif /* PLUGIN_STRING_FUNCTIONS_ELT_H */