--- parser3/src/include/pa_stylesheet_manager.h 2003/02/17 17:05:03 1.15.2.2 +++ parser3/src/include/pa_stylesheet_manager.h 2003/09/24 14:32:06 1.16.4.1 @@ -10,19 +10,14 @@ #ifndef PA_STYLESHEET_MANAGER_H #define PA_STYLESHEET_MANAGER_H -static const char* IDENT_STYLESHEET_MANAGER_H="$Date: 2003/02/17 17:05:03 $"; +static const char* IDENT_STYLESHEET_MANAGER_H="$Date: 2003/09/24 14:32:06 $"; + -#include "pa_pool.h" #include "pa_hash.h" #include "pa_table.h" #include "pa_cache_managers.h" - -// defines - -// forwards - -class Stylesheet_connection; -class Stylesheet_connection_ptr; +#include "pa_stack.h" +#include "pa_stylesheet_connection.h" /** XSLT stylesheet driver manager maintains @@ -32,8 +27,8 @@ class Stylesheet_manager: public Cache_m friend class Stylesheet_connection; public: - Stylesheet_manager(Pool& apool); - virtual ~Stylesheet_manager(); + Stylesheet_manager(); + override ~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 @@ -42,7 +37,7 @@ public: private: // cache - Stylesheet_connection *get_connection_from_cache(const String& file_spec); + Stylesheet_connection* get_connection_from_cache(const String& file_spec); void put_connection_to_cache(const String& file_spec, Stylesheet_connection& connection); private: time_t prev_expiration_pass_time; @@ -52,18 +47,20 @@ private: // for stylesheet /// caches connection void close_connection(const String& file_spec, Stylesheet_connection& connection); +public: + typedef Stack connection_cache_value_type; + typedef Hash connection_cache_type; private: - - Hash connection_cache; + connection_cache_type connection_cache; public: // Cache_manager - virtual Value& get_status(Pool& pool, const String *source); - virtual void maybe_expire_cache(); + override Value* get_status(); + override void maybe_expire_cache(); }; /// global -extern Stylesheet_manager *stylesheet_manager; +extern Stylesheet_manager stylesheet_manager; #endif