~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message.h

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
namespace plugin
31
31
{
32
32
 
33
 
class ErrorMessage
 
33
class ErrorMessage : public Plugin
34
34
{
35
 
  std::string name;
 
35
  ErrorMessage();
 
36
  ErrorMessage(const ErrorMessage &);
 
37
  ErrorMessage& operator=(const ErrorMessage &);
36
38
public:
37
 
  ErrorMessage(std::string name_arg): name(name_arg) {}
 
39
  explicit ErrorMessage(std::string name_arg)
 
40
   : Plugin(name_arg)
 
41
  {}
38
42
  virtual ~ErrorMessage() {}
39
43
 
40
 
  std::string getName() { return name; }
41
 
 
42
44
  virtual bool errmsg(Session *session, int priority,
43
45
                      const char *format, va_list ap)=0;
44
46