From e68122bb4e3a0fdfe97d38ed1661dbef1c11c4ec Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 6 Jul 2010 22:46:20 +0200 Subject: [PATCH] core: provide description of SystemEvents --- core/AmEvent.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/AmEvent.h b/core/AmEvent.h index f8ca9652..a207b57b 100644 --- a/core/AmEvent.h +++ b/core/AmEvent.h @@ -85,6 +85,13 @@ struct AmSystemEvent : public AmEvent : AmEvent(rhs), sys_event(rhs.sys_event) { } AmEvent* clone() { return new AmSystemEvent(*this); }; + + static const char* getDescription(EvType t) { + switch (t) { + case ServerShutdown: return "ServerShutdown"; + default: return "Unknown"; + } + } }; /** \brief event handler interface */