Diff for /parser3/src/include/pa_cache_managers.h between versions 1.3 and 1.9.2.5

version 1.3, 2001/12/13 11:09:46 version 1.9.2.5, 2003/01/31 12:34:29
Line 1 Line 1
 /** @file  /** @file
         Parser: cache managers center decl.          Parser: cache managers center decl.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
   
         $Id$          $Date$
 */  */
   
 #ifndef PA_CACHE_MANAGERS_H  #ifndef PA_CACHE_MANAGERS_H
 #define PA_CACHE_MANAGERS_H  #define PA_CACHE_MANAGERS_H
   
 #include "pa_config_includes.h"  static const char* IDENT_CACHE_MANAGERS_H="$Date$";
   
 #include "pa_hash.h"  #include "pa_hash.h"
 #include "pa_value.h"  #include "pa_value.h"
   
 // defines  // defines
   
 // forwards  /// can return status and can expire it contents
   class Cache_manager: public PA_Object {
   public:
           /// if filter_server_id not null, returns status only Cachable -s with matching cacheable_item_server_id()
           virtual ValuePtr get_status(Pool& pool, StringPtr source) =0;
           virtual void maybe_expire_cache() {}
   };
   
 /// maintains name=>Cache_manager association, can expire its contents  /// maintains name=>Cache_manager association, can expire its contents
 class Cache_managers : public Hash {  class Cache_managers: public Hash<StringPtr, Cache_manager*> {
 public:  public:
         Cache_managers(Pool& apool) : Hash(apool) {  
         }  
   
         ~Cache_managers();  
   
         /// maybe-expires all caches it contains, each cache manager desides it itself          /// maybe-expires all caches it contains, each cache manager desides it itself
         void maybe_expire();          void maybe_expire();
   
 };  };
   
 /// can return status and can expire it contents  
 class Cache_manager : public Pooled {  
 public:  
         Cache_manager(Pool& apool) : Pooled(apool) {}  
         virtual ~Cache_manager() {}  
   
         /// if filter_server_id not null, returns status only Cachable -s with matching cacheable_item_server_id()  
         virtual Value& get_status(Pool& pool, const String *source) =0;  
         virtual void maybe_expire_cache() {}  
 };  
   
 /// global  /// global
 extern Cache_managers *cache_managers;  extern Cache_managers cache_managers;
   
 #endif  #endif

Removed from v.1.3  
changed lines
  Added in v.1.9.2.5


E-mail: