~drizzle-trunk/drizzle/development

1637.3.1 by Mark Atwood
new syslog module, with plugins for query log, error message, and SYSLOG() function
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2010 Mark Atwood
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
19
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
20
#pragma once
1637.3.1 by Mark Atwood
new syslog module, with plugins for query log, error message, and SYSLOG() function
21
22
#include <drizzled/plugin/function.h>
23
#include <drizzled/item/func.h>
24
#include <drizzled/function/str/strfunc.h>
25
1964.2.7 by Monty Taylor
Refactored syslog module and changed it to use sys_var directly.
26
namespace drizzle_plugin
27
{
28
namespace udf
29
{
30
31
class Syslog : public drizzled::Item_str_func
1637.3.1 by Mark Atwood
new syslog module, with plugins for query log, error message, and SYSLOG() function
32
{
33
private:
1964.2.7 by Monty Taylor
Refactored syslog module and changed it to use sys_var directly.
34
  Syslog(const Syslog&);
35
  Syslog& operator=(const Syslog&);
1637.3.1 by Mark Atwood
new syslog module, with plugins for query log, error message, and SYSLOG() function
36
37
public:
1964.2.7 by Monty Taylor
Refactored syslog module and changed it to use sys_var directly.
38
  Syslog();
1637.3.1 by Mark Atwood
new syslog module, with plugins for query log, error message, and SYSLOG() function
39
40
  const char *func_name() const { return "syslog"; }
41
42
  drizzled::String *val_str(drizzled::String *s);
43
  void fix_length_and_dec();
44
  bool check_argument_count(int n);
45
};
46
1964.2.7 by Monty Taylor
Refactored syslog module and changed it to use sys_var directly.
47
} /* namespace udf */
48
} /* namepsace drizzle_plugin */
49
50