--- parser3/src/include/pa_stylesheet_manager.h 2003/03/06 12:58:32 1.15.2.3 +++ parser3/src/include/pa_stylesheet_manager.h 2003/03/21 16:39:05 1.15.2.5.2.3 @@ -10,14 +10,13 @@ #ifndef PA_STYLESHEET_MANAGER_H #define PA_STYLESHEET_MANAGER_H -static const char* IDENT_STYLESHEET_MANAGER_H="$Date: 2003/03/06 12:58:32 $"; +static const char* IDENT_STYLESHEET_MANAGER_H="$Date: 2003/03/21 16:39:05 $"; + -#include "pa_pool.h" #include "pa_hash.h" #include "pa_table.h" #include "pa_cache_managers.h" - -// defines +#include "pa_stack.h" // forwards @@ -38,27 +37,28 @@ public: check for disk update of "{file_spec}" or "{file_spec}.stamp", if not updated return cached version[if any] otherwise load/compile/return */ - Stylesheet_connectionPtr get_connection(StringPtr file_spec); + Stylesheet_connectionPtr get_connection(const String& file_spec); private: // cache - Stylesheet_connectionPtr get_connection_from_cache(StringPtr file_spec); - void put_connection_to_cache(StringPtr file_spec, Stylesheet_connectionPtr connection); + Stylesheet_connectionPtr get_connection_from_cache(const String& file_spec); + void put_connection_to_cache(const String& file_spec, Stylesheet_connectionPtr connection); private: time_t prev_expiration_pass_time; private: // for stylesheet /// caches connection - void close_connection(StringPtr file_spec, Stylesheet_connection& connection); + void close_connection(const String& file_spec, Stylesheet_connection& connection); +public: + typedef Hash > > connection_cache_type; private: - - Hash connection_cache; + connection_cache_type connection_cache; public: // Cache_manager - override ValuePtr get_status(Pool& pool, StringPtr source); + override Value* get_status(); override void maybe_expire_cache(); };