From ed571ef5d7d4f125a9e612024e8cfe64167b3db1 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 27 Sep 1994 10:01:39 +0000 Subject: [PATCH] Aggiunto livello dei files git-svn-id: svn://10.65.10.50/trunk@290 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/prefix.cpp | 7 +++++++ include/prefix.h | 43 ++++++++++++++++++++++--------------------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/include/prefix.cpp b/include/prefix.cpp index 0695c38c5..7dd3fa9c3 100755 --- a/include/prefix.cpp +++ b/include/prefix.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #define __PREFIX_CPP #include @@ -157,7 +158,13 @@ void TPrefix::set(const char* name, bool force, TFilelock mode) COpenRecDir((int) mode, NORDIR); COpenRecDir((int) mode, COMDIR); if (_prefix != ".") + { + FileDes d; + + CGetFile(LF_DIR, &d, _nolock, NORDIR); + _filelevel = d.Flags; openall(FALSE, excl, max); + } } diff --git a/include/prefix.h b/include/prefix.h index e67ab3ddb..e88d8bbd4 100755 --- a/include/prefix.h +++ b/include/prefix.h @@ -19,25 +19,28 @@ class TPrefix : public TObject { -// @DPRIV - TString _prefix; - int* _dirfl; - int* _recfl; - SecDef* _fdir; - SecDef* _rdir; - - bool test(const char* s) const ; - void put(); + // @DPRIV + TString _prefix; + int* _dirfl; + int* _recfl; + long _filelevel; + SecDef* _fdir; + SecDef* _rdir; + + bool test(const char* s) const ; + void put(); public: -// @FPUB - void set(const char* name = NULL, bool force = FALSE, TFilelock mode = _manulock); - bool test(long codditta) const; - long get_codditta() const ; - bool set_codditta(long codditta, bool force = FALSE); - const char* name() const { return _prefix;} - TPrefix(); - virtual ~TPrefix(); + // @FPUB + void set(const char* name = NULL, bool force = FALSE, TFilelock mode = _manulock); + bool test(long codditta) const; + long get_codditta() const ; + bool set_codditta(long codditta, bool force = FALSE); + const char* name() const { return _prefix;} + long filelevel() const {return _filelevel;} + + TPrefix(); + virtual ~TPrefix(); }; @@ -51,13 +54,11 @@ const char* firm2dir(long codditta); extern TPrefix* prefhndl // @END #ifdef __PREFIX_CPP - = NULL ; += NULL ; #undef extern #else - ; +; #endif #endif // __PREFIX_H - -