~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message.h

Some carnage. I'm sure it'll need fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
 
 
 
3
 *
5
4
 *  Definitions required for Error Message plugin
6
 
 
 
5
 *
7
6
 *  Copyright (C) 2008 Sun Microsystems
8
7
 *
9
8
 *  This program is free software; you can redistribute it and/or modify
31
30
namespace plugin
32
31
{
33
32
 
34
 
class ErrorMessage
 
33
class ErrorMessage : public Plugin
35
34
{
36
 
  std::string name;
 
35
  ErrorMessage();
 
36
  ErrorMessage(const ErrorMessage &);
37
37
public:
38
 
  ErrorMessage(std::string name_arg): name(name_arg) {}
 
38
  explicit ErrorMessage(std::string name_arg): Plugin(name_arg) {}
39
39
  virtual ~ErrorMessage() {}
40
40
 
41
 
  std::string getName() { return name; }
42
 
 
43
41
  virtual bool errmsg(Session *session, int priority,
44
42
                      const char *format, va_list ap)=0;
45
43
};