--- parser3/src/include/pa_stylesheet_manager.h 2001/11/08 11:04:12 1.6 +++ parser3/src/include/pa_stylesheet_manager.h 2002/08/01 11:26:48 1.13 @@ -1,11 +1,8 @@ /** @file Parser: Stylesheet manager decl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_stylesheet_manager.h,v 1.6 2001/11/08 11:04:12 paf Exp $ - + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) global sql driver manager, must be thread-safe */ @@ -13,7 +10,8 @@ #ifndef PA_STYLESHEET_MANAGER_H #define PA_STYLESHEET_MANAGER_H -#include "pa_config_includes.h" +static const char* IDENT_STYLESHEET_MANAGER_H="$Id: pa_stylesheet_manager.h,v 1.13 2002/08/01 11:26:48 paf Exp $"; + #include "pa_pool.h" #include "pa_hash.h" #include "pa_table.h" @@ -24,22 +22,23 @@ // forwards class Stylesheet_connection; +class Stylesheet_connection_ptr; /** XSLT stylesheet driver manager maintains stylesheet cache expiring unused stylesheets */ -class Stylesheet_manager : public Pooled, public Cache_manager { +class Stylesheet_manager : public Cache_manager { friend class Stylesheet_connection; public: Stylesheet_manager(Pool& apool); - ~Stylesheet_manager(); + virtual ~Stylesheet_manager(); /** check for disk update of "{file_spec}" or "{file_spec}.stamp", if not updated return cached version[if any] otherwise load/compile/return */ - Stylesheet_connection& get_connection(const String& file_spec); + Stylesheet_connection_ptr get_connection(const String& file_spec); private: // cache