~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message.h

Merged in plugin-slot-reorg patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
21
 */
22
22
 
23
 
#ifndef DRIZZLED_PLUGIN_ERRMSG_H
24
 
#define DRIZZLED_PLUGIN_ERRMSG_H
 
23
#ifndef DRIZZLED_PLUGIN_ERROR_MESSAGE_H
 
24
#define DRIZZLED_PLUGIN_ERROR_MESSAGE_H
25
25
 
26
26
#include <stdarg.h>
27
27
#include <string>
28
28
 
29
 
class Error_message_handler
 
29
namespace drizzled
 
30
{
 
31
namespace plugin
 
32
{
 
33
 
 
34
class ErrorMessage
30
35
{
31
36
  std::string name;
32
37
public:
33
 
  Error_message_handler(std::string name_arg): name(name_arg) {}
34
 
  Error_message_handler(const char *name_arg): name(name_arg) {}
35
 
  virtual ~Error_message_handler() {}
 
38
  ErrorMessage(std::string name_arg): name(name_arg) {}
 
39
  virtual ~ErrorMessage() {}
36
40
 
37
41
  std::string getName() { return name; }
38
42
 
40
44
                      const char *format, va_list ap)=0;
41
45
};
42
46
 
43
 
#endif /* DRIZZLED_PLUGIN_ERRMSG_H */
 
47
} /* namespace plugin */
 
48
} /* namespace drizzled */
 
49
 
 
50
#endif /* DRIZZLED_PLUGIN_ERROR_MESSAGE_H */