From 63bab16fbcdda995c502d0d8faafa7d7d30778cf Mon Sep 17 00:00:00 2001 From: john stone Date: Fri, 22 Nov 2013 13:39:49 +0100 Subject: [PATCH] added static eventlist for hashfunc generation --- src/eventlist.txt | 7 +++++++ src/routerin.cc | 13 ++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 src/eventlist.txt diff --git a/src/eventlist.txt b/src/eventlist.txt new file mode 100644 index 0000000..ac19f79 --- /dev/null +++ b/src/eventlist.txt @@ -0,0 +1,7 @@ +#This List is for generating the +#Foohash class with gperf that is needed +#in our Router +/files +/date +/static +/upload diff --git a/src/routerin.cc b/src/routerin.cc index 5a7d865..302a7c5 100644 --- a/src/routerin.cc +++ b/src/routerin.cc @@ -3,20 +3,19 @@ namespace routerin { class EventRouter { -} +}; class BaseHandler{ - virtual ~BaseHandler = 0; virtual int handle_event() = 0; -} +}; -class FilesEventHandler:public BaseHandler(){ -} +class FilesEventHandler:public BaseHandler{ +}; -class StaticEventHandler:public BaseHandler(){ -} +class StaticEventHandler:public BaseHandler{ +}; };