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 |
*
|
1010
by Brian Aker
Replacing Sun employee copyright headers (aka... anything done by a Sun |
6 |
* Copyright (C) 2008 Sun Microsystems
|
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 |
|
1130.1.1
by Monty Taylor
Merged in plugin-slot-reorg patches. |
22 |
#ifndef DRIZZLED_PLUGIN_ERROR_MESSAGE_H
|
23 |
#define DRIZZLED_PLUGIN_ERROR_MESSAGE_H
|
|
499.2.1
by Mark Atwood
add hooks for errmsg plugin type |
24 |
|
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 |
25 |
#include "drizzled/plugin/plugin.h" |
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 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
31 |
namespace drizzled |
32 |
{
|
|
1241.9.26
by Monty Taylor
Removed forward declares from server_includes.h |
33 |
class Session; |
34 |
||
1130.1.1
by Monty Taylor
Merged in plugin-slot-reorg patches. |
35 |
namespace plugin |
36 |
{
|
|
37 |
||
1130.2.5
by Monty Taylor
Some carnage. I'm sure it'll need fixed. |
38 |
class ErrorMessage : public Plugin |
499.2.1
by Mark Atwood
add hooks for errmsg plugin type |
39 |
{
|
1130.2.5
by Monty Taylor
Some carnage. I'm sure it'll need fixed. |
40 |
ErrorMessage(); |
41 |
ErrorMessage(const ErrorMessage &); |
|
1130.2.16
by Monty Taylor
Cleaned up the constructor initializer lists per Brian. |
42 |
ErrorMessage& operator=(const ErrorMessage &); |
942.1.16
by Monty Taylor
Converted error message plugin to class. |
43 |
public: |
1130.2.16
by Monty Taylor
Cleaned up the constructor initializer lists per Brian. |
44 |
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. :) |
45 |
: Plugin(name_arg, "ErrorMessage") |
1130.2.16
by Monty Taylor
Cleaned up the constructor initializer lists per Brian. |
46 |
{}
|
1130.1.1
by Monty Taylor
Merged in plugin-slot-reorg patches. |
47 |
virtual ~ErrorMessage() {} |
942.1.16
by Monty Taylor
Converted error message plugin to class. |
48 |
|
49 |
virtual bool errmsg(Session *session, int priority, |
|
50 |
const char *format, va_list ap)=0; |
|
1130.1.12
by Monty Taylor
Moved service stuff into plugin/ |
51 |
|
1130.1.19
by Monty Taylor
Added error reporting to plugin registration. |
52 |
static bool addPlugin(plugin::ErrorMessage *handler); |
1130.1.18
by Monty Taylor
Changed ::add() and ::remove() to ::addPlugin() and ::removePlugin() so that |
53 |
static void removePlugin(plugin::ErrorMessage *handler); |
1130.1.12
by Monty Taylor
Moved service stuff into plugin/ |
54 |
|
55 |
static bool vprintf(Session *session, int priority, char const *format, |
|
56 |
va_list ap); |
|
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 |
||
62 |
#endif /* DRIZZLED_PLUGIN_ERROR_MESSAGE_H */ |