Back to index

texmacs  1.0.7.15
data_cache.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : data_cache.hpp
00004 * DESCRIPTION: utilities for caching data
00005 * COPYRIGHT  : (C) 2005  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef DATA_CACHE_H
00013 #define DATA_CACHE_H
00014 #include "url.hpp"
00015 
00016 void cache_set (string buffer, tree key, tree im);
00017 void cache_reset (string buffer, tree key);
00018 bool is_cached (string buffer, tree key);
00019 tree cache_get (string buffer, tree key);
00020 bool is_up_to_date (url dir, bool reset= false);
00021 bool is_recursively_up_to_date (url dir);
00022 
00023 bool do_cache_dir (string name);
00024 bool do_cache_stat_fail (string name);
00025 bool do_cache_stat (string name);
00026 bool do_cache_file (string name);
00027 bool do_cache_doc (string name);
00028 
00029 void cache_save (string buffer);
00030 void cache_load (string buffer);
00031 void cache_memorize ();
00032 void cache_refresh ();
00033 void cache_initialize ();
00034 
00035 #endif // defined DATA_CACHE_H