Diff for /parser3/src/include/pa_stylesheet_manager.h between versions 1.15.2.4 and 1.16.4.1

version 1.15.2.4, 2003/03/06 15:32:37 version 1.16.4.1, 2003/09/24 14:32:06
Line 12 Line 12
   
 static const char* IDENT_STYLESHEET_MANAGER_H="$Date$";  static const char* IDENT_STYLESHEET_MANAGER_H="$Date$";
   
 #include "pa_pool.h"  
 #include "pa_hash.h"  #include "pa_hash.h"
 #include "pa_table.h"  #include "pa_table.h"
 #include "pa_cache_managers.h"  #include "pa_cache_managers.h"
 #include "pa_stack.h"  #include "pa_stack.h"
   #include "pa_stylesheet_connection.h"
 // forwards  
   
 class Stylesheet_connection;  
 DECLARE_OBJECT_PTR(Stylesheet_connection);  
   
 /** XSLT stylesheet driver manager  /** XSLT stylesheet driver manager
                 maintains                   maintains 
Line 37  public: Line 33  public:
                 check for disk update of "{file_spec}" or "{file_spec}.stamp",                  check for disk update of "{file_spec}" or "{file_spec}.stamp",
                 if not updated return cached version[if any] otherwise load/compile/return                  if not updated return cached version[if any] otherwise load/compile/return
         */          */
         Stylesheet_connectionPtr get_connection(StringPtr file_spec);          Stylesheet_connection_ptr get_connection(const String& file_spec);
   
 private: // cache  private: // cache
   
         Stylesheet_connectionPtr get_connection_from_cache(StringPtr file_spec);          Stylesheet_connection* get_connection_from_cache(const String& file_spec);
         void put_connection_to_cache(StringPtr file_spec, Stylesheet_connectionPtr connection);          void put_connection_to_cache(const String& file_spec, Stylesheet_connection& connection);
 private:  private:
         time_t prev_expiration_pass_time;          time_t prev_expiration_pass_time;
   
 private: // for stylesheet  private: // for stylesheet
   
         /// caches connection          /// caches connection
         void close_connection(StringPtr file_spec, Stylesheet_connection& connection);          void close_connection(const String& file_spec, Stylesheet_connection& connection);
   
   public:
           typedef Stack<Stylesheet_connection*> connection_cache_value_type;
           typedef Hash<const String::Body, connection_cache_value_type*> connection_cache_type;
 private:  private:
   
         typedef Hash<StringPtr, object_ptr<Stack<Stylesheet_connectionPtr> > > connection_cache_type;  
         connection_cache_type connection_cache;          connection_cache_type connection_cache;
   
 public: // Cache_manager  public: // Cache_manager
   
         override ValuePtr get_status(Pool& pool, StringPtr source);          override Value* get_status();
         override void maybe_expire_cache();          override void maybe_expire_cache();
   
 };  };

Removed from v.1.15.2.4  
changed lines
  Added in v.1.16.4.1


E-mail: