~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#pragma once
23
23
 
24
24
#include <drizzled/plugin/plugin.h>
25
 
#include <drizzled/error/level_t.h>
 
25
#include <drizzled/error/priority_t.h>
26
26
 
27
27
#include <stdarg.h>
28
28
 
38
38
 
39
39
class DRIZZLED_API ErrorMessage : public Plugin
40
40
{
41
 
  ErrorMessage();
42
 
  ErrorMessage(const ErrorMessage &);
43
 
  ErrorMessage& operator=(const ErrorMessage &);
44
 
 
45
41
public:
46
42
  explicit ErrorMessage(std::string name_arg)
47
43
   : Plugin(name_arg, "ErrorMessage")
48
44
  {}
49
 
  virtual ~ErrorMessage() {}
50
45
 
51
 
  virtual bool errmsg(error::level_t priority, const char *format, va_list ap)=0;
 
46
  virtual bool errmsg(error::priority_t priority, const char *format, va_list ap)=0;
52
47
 
53
48
  static bool addPlugin(plugin::ErrorMessage *handler);
54
49
  static void removePlugin(plugin::ErrorMessage *handler);
55
50
 
56
 
  static bool vprintf(error::level_t priority, char const *format, va_list ap);
 
51
  static bool vprintf(error::priority_t priority, char const *format, va_list ap);
57
52
 
58
53
  bool removeLast() const
59
54
  {