--- parser3/src/include/pa_stylesheet_connection.h 2005/08/09 08:14:50 1.40 +++ parser3/src/include/pa_stylesheet_connection.h 2023/09/26 20:49:07 1.49 @@ -1,14 +1,14 @@ /** @file Parser: Stylesheet connection decl. - Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_STYLESHEET_CONNECTION_H #define PA_STYLESHEET_CONNECTION_H -static const char * const IDENT_STYLESHEET_CONNECTION_H="$Date: 2005/08/09 08:14:50 $"; +#define IDENT_PA_STYLESHEET_CONNECTION_H "$Id: pa_stylesheet_connection.h,v 1.49 2023/09/26 20:49:07 moko Exp $" #include "libxslt/xslt.h" #include "libxslt/xsltInternals.h" @@ -21,7 +21,7 @@ static const char * const IDENT_STYLESHE // defines -/** Connection with stylesheet: +/** Connection with stylesheet: remembers time and can figure out that it needs recompilation */ class Stylesheet_connection: public PA_Object { @@ -44,31 +44,31 @@ public: dependencies(0), time_used(0), prev_disk_time(0), - used(0) + used(0) {} - + String::Body file_spec() { return ffile_spec; } bool uncachable() { - return !dependencies/*means they were external*/; + return !dependencies /*means they were external*/; } bool expired(time_t older_dies) { - return uncachable() || !used && time_useduse(); } ~Stylesheet_connection_ptr() { @@ -115,22 +116,6 @@ public: Stylesheet_connection* operator->() { return fconnection; } -/* Stylesheet_connection& operator*() { - return *fconnection; - }*/ - - // copying - Stylesheet_connection_ptr(const Stylesheet_connection_ptr& src) : fconnection(src.fconnection) { - fconnection->use(); - } - Stylesheet_connection_ptr& operator =(const Stylesheet_connection_ptr& src) { - // may do without this=src check - fconnection->unuse(); - fconnection=src.fconnection; - fconnection->use(); - - return *this; - } }; #endif