--- parser3/src/include/pa_stylesheet_manager.h 2001/10/29 08:23:49 1.2 +++ parser3/src/include/pa_stylesheet_manager.h 2001/11/08 14:47:32 1.7 @@ -2,9 +2,9 @@ Parser: Stylesheet manager decl. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_stylesheet_manager.h,v 1.2 2001/10/29 08:23:49 paf Exp $ + $Id: pa_stylesheet_manager.h,v 1.7 2001/11/08 14:47:32 paf Exp $ global sql driver manager, must be thread-safe @@ -17,11 +17,10 @@ #include "pa_pool.h" #include "pa_hash.h" #include "pa_table.h" - +#include "pa_cache_managers.h" // defines - // forwards class Stylesheet_connection; @@ -30,11 +29,11 @@ class Stylesheet_connection; maintains stylesheet cache expiring unused stylesheets */ -class Stylesheet_manager : public Pooled { +class Stylesheet_manager : public Cache_manager { friend class Stylesheet_connection; public: - Stylesheet_manager(Pool& pool); + Stylesheet_manager(Pool& apool); ~Stylesheet_manager(); /** check for disk update of "{file_spec}" or "{file_spec}.stamp", @@ -46,7 +45,6 @@ private: // cache Stylesheet_connection *get_connection_from_cache(const String& file_spec); void put_connection_to_cache(const String& file_spec, Stylesheet_connection& connection); - void maybe_expire_connection_cache(); private: time_t prev_expiration_pass_time; @@ -58,6 +56,12 @@ private: // for stylesheet private: Hash connection_cache; + +public: // Cache_manager + + virtual Value& get_status(Pool& pool, const String *source); + virtual void maybe_expire_cache(); + }; /// global