#ifndef _CGI_SERVICE_H_ #define _CGI_SERVICE_H_ #include "ServiceBase.h" namespace CGI { class Service { CGI::ServiceBase* base; public: bool initialize(); int dispatch() { return base->dispatch(); } public: Service() : base(0) { } ~Service() { if (base) { base->cleanup(); delete base; } } }; } #endif