Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
error_message.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Definitions required for Error Message plugin
5
*
6
* Copyright (C) 2008 Sun Microsystems, Inc.
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
*/
21
22
#pragma once
23
24
#include <drizzled/plugin/plugin.h>
25
#include <drizzled/error/priority_t.h>
26
27
#include <stdarg.h>
28
29
#include <string>
30
31
#include <
drizzled/visibility.h
>
32
33
namespace
drizzled
34
{
35
36
namespace
plugin
37
{
38
39
class
DRIZZLED_API
ErrorMessage
:
public
Plugin
40
{
41
public
:
42
explicit
ErrorMessage
(std::string name_arg)
43
:
Plugin
(name_arg,
"ErrorMessage"
)
44
{}
45
46
virtual
bool
errmsg(error::priority_t priority,
const
char
*format, va_list ap)=0;
47
48
static
bool
addPlugin(
plugin::ErrorMessage
*handler);
49
static
void
removePlugin(
plugin::ErrorMessage
*handler);
50
51
static
bool
vprintf(error::priority_t priority,
char
const
*format, va_list ap);
52
53
bool
removeLast()
const
54
{
55
return
true
;
56
}
57
};
58
59
}
/* namespace plugin */
60
}
/* namespace drizzled */
61
drizzled
plugin
error_message.h
Generated on Sun Jun 3 2012 18:09:21 for drizzle by
1.8.1