--- parser3/src/include/pa_stylesheet_connection.h 2003/11/20 16:34:25 1.35 +++ parser3/src/include/pa_stylesheet_connection.h 2004/02/11 15:33:14 1.38 @@ -1,14 +1,14 @@ /** @file Parser: Stylesheet connection decl. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STYLESHEET_CONNECTION_H #define PA_STYLESHEET_CONNECTION_H -static const char * const IDENT_STYLESHEET_CONNECTION_H="$Date: 2003/11/20 16:34:25 $"; +static const char * const IDENT_STYLESHEET_CONNECTION_H="$Date: 2004/02/11 15:33:14 $"; #include "libxslt/xslt.h" #include "libxslt/xsltInternals.h" @@ -31,23 +31,28 @@ class Stylesheet_connection: public PA_O private: - const String& ffile_spec; + String::Body ffile_spec; + bool uncachable; xsltStylesheet *fstylesheet; time_t time_used; time_t prev_disk_time; public: - Stylesheet_connection(const String& afile_spec): + Stylesheet_connection(String::Body afile_spec): ffile_spec(afile_spec), - prev_disk_time(0), fstylesheet(0), - time_used(0), used(0) {} + time_used(0), + prev_disk_time(0), + used(0) + { + uncachable=ffile_spec.pos("://")!=CORD_NOT_FOUND; + } - const String& file_spec() { return ffile_spec; } + String::Body file_spec() { return ffile_spec; } bool expired(time_t older_dies) { - return !used && time_used