~drizzle-trunk/drizzle/development

1122.2.10 by Monty Taylor
Fixed all of the include guards.
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
499.2.10 by Mark Atwood
add editor format hints, and other useful metadata comments
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
1122.2.10 by Monty Taylor
Fixed all of the include guards.
3
 *
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
4
 *  Definitions required for Error Message plugin
1122.2.10 by Monty Taylor
Fixed all of the include guards.
5
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
6
 *  Copyright (C) 2008 Sun Microsystems, Inc.
499.2.10 by Mark Atwood
add editor format hints, and other useful metadata comments
7
 *
8
 *  This program is free software; you can redistribute it and/or modify
9
 *  it under the terms of the GNU General Public License as published by
10
 *  the Free Software Foundation; version 2 of the License.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
18
 *  along with this program; if not, write to the Free Software
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
 */
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
21
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
22
#pragma once
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
23
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
24
#include <drizzled/plugin/plugin.h>
2440.4.3 by Brian Aker
Update naming convention for priority.
25
#include <drizzled/error/priority_t.h>
1237.9.3 by Padraig O'Sullivan
Removed one the includes I put in server_includes.h for the last commit to get rid of the inclusion
26
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
27
#include <stdarg.h>
1241.9.26 by Monty Taylor
Removed forward declares from server_includes.h
28
968.2.36 by Monty Taylor
Removed configvar and parser plugin types. They are not being used and they are just one more type to be converted. We can/will add them back once we have a place for them to be used.
29
#include <string>
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
30
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
31
#include <drizzled/visibility.h>
2119.4.1 by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by
32
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
33
namespace drizzled
34
{
2126.3.3 by Brian Aker
Merge in error message rework. Many error messages are fixed in this patch.
35
1130.1.1 by Monty Taylor
Merged in plugin-slot-reorg patches.
36
namespace plugin
37
{
38
2119.4.1 by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by
39
class DRIZZLED_API ErrorMessage : public Plugin
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
40
{
942.1.16 by Monty Taylor
Converted error message plugin to class.
41
public:
1130.2.16 by Monty Taylor
Cleaned up the constructor initializer lists per Brian.
42
  explicit ErrorMessage(std::string name_arg)
1192.2.5 by Monty Taylor
Replaced overridable virtual methods with passing name to constructor. Now individual plugins will not be allowed to set their own plugin type name. :)
43
   : Plugin(name_arg, "ErrorMessage")
1130.2.16 by Monty Taylor
Cleaned up the constructor initializer lists per Brian.
44
  {}
942.1.16 by Monty Taylor
Converted error message plugin to class.
45
2440.4.3 by Brian Aker
Update naming convention for priority.
46
  virtual bool errmsg(error::priority_t priority, const char *format, va_list ap)=0;
1130.1.12 by Monty Taylor
Moved service stuff into plugin/
47
1130.1.19 by Monty Taylor
Added error reporting to plugin registration.
48
  static bool addPlugin(plugin::ErrorMessage *handler);
1130.1.18 by Monty Taylor
Changed ::add() and ::remove() to ::addPlugin() and ::removePlugin() so that
49
  static void removePlugin(plugin::ErrorMessage *handler);
1130.1.12 by Monty Taylor
Moved service stuff into plugin/
50
2440.4.3 by Brian Aker
Update naming convention for priority.
51
  static bool vprintf(error::priority_t priority, char const *format, va_list ap);
2139.3.11 by Brian Aker
Error log messages from Inno, most, not all are sent to the correct error
52
53
  bool removeLast() const
54
  {
55
    return true;
56
  }
942.1.16 by Monty Taylor
Converted error message plugin to class.
57
};
499.2.1 by Mark Atwood
add hooks for errmsg plugin type
58
1130.1.1 by Monty Taylor
Merged in plugin-slot-reorg patches.
59
} /* namespace plugin */
60
} /* namespace drizzled */
61