X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/0391c237272d90acfc769f4aeebe0554d47f74cb..33ee1f81e21dbb384b48c8083aff790ca313558e:/configcache.cpp?ds=inline diff --git a/configcache.cpp b/configcache.cpp index c6f9082..5987789 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -4,6 +4,9 @@ #include #include #include +#include +#include +#include #include #include @@ -191,7 +194,7 @@ void configcache::readConfig(bool *readnewconfig, int *nequileft, vectorout = new boost::iostreams::filtering_ostreambuf; @@ -288,7 +307,7 @@ void configcache::openOutFile(int actnequi) void configcache::writeHeader(const string& headerid, const char *header, long unsigned int size, int actnequi) { unsigned long headeridhash; - if( DATADIR == "" || MODE < 2 ) return; + if( DATADIR == "" || !(MODE==CACHE_MODE_WO||MODE==CACHE_MODE_RW) ) return; if(!outFile.is_open()) openOutFile(actnequi); @@ -304,7 +323,7 @@ void configcache::writeConfig(int actnequi) { long unsigned int zeroheader=0; - if ( DATADIR == "" || MODE < 2 ) return; + if ( DATADIR == "" || !(MODE==CACHE_MODE_WO||MODE==CACHE_MODE_RW) ) return; if ( ! outFile.is_open() ) openOutFile(actnequi);