00001 /* mini 00002 * 00003 * This program is distributed under the GNU General Public License, version 2. 00004 * A copy of this license is included with this source. 00005 * 00006 * Copyright 2004-2006, Toni Thomsson <toni@tonjac.org> 00007 */ 00008 00015 #ifndef zz_html_generic_render_h 00016 #define zz_html_generic_render_h 00017 00018 #include <zz_export.h> 00019 #include <zz_thread_safe_config.h> 00020 #include <zz_html_render.h> 00021 #include <zz_log.h> 00022 00023 typedef void (WINAPI * MINI_SVC_CTOR) (); 00024 typedef void (WINAPI * MINI_SVC_DTOR) (); 00025 typedef int (WINAPI * MINI_SVC_CLASS_SIZE) (); 00026 00027 class ZZ_API CzzHtmlGenericRender : public CzzHtmlRender 00028 { 00029 public: 00030 00031 //* Construction 00032 CzzHtmlGenericRender( const CzzString& script, void* session, CzzParameterMap* cgi, CzzThreadSafeConfig* cfg, const CzzString& name ); 00033 ~CzzHtmlGenericRender(); 00034 00035 protected: 00036 00037 private: 00038 CzzString m_Script; 00039 CzzHtmlService* createServiceObject( const char* dllname, const char* classname ); 00040 void* freeObject( const char* dllname, const char* classname, void* obj ); 00041 map<CzzString,CzzHtmlService*> m_ListSvcsNames; 00042 void addListSvcName( const CzzString& name, CzzHtmlService* svc ); 00043 CzzLog m_Log; 00044 }; 00045 00046 #endif // zz_html_generic_render_h
1.4.6-NO