Aggiunto livello dei files

git-svn-id: svn://10.65.10.50/trunk@290 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-09-27 10:01:39 +00:00
parent 893e4c3f1a
commit ed571ef5d7
2 changed files with 29 additions and 21 deletions

View File

@ -1,6 +1,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <lffiles.h>
#define __PREFIX_CPP #define __PREFIX_CPP
#include <prefix.h> #include <prefix.h>
@ -157,8 +158,14 @@ void TPrefix::set(const char* name, bool force, TFilelock mode)
COpenRecDir((int) mode, NORDIR); COpenRecDir((int) mode, NORDIR);
COpenRecDir((int) mode, COMDIR); COpenRecDir((int) mode, COMDIR);
if (_prefix != ".") if (_prefix != ".")
{
FileDes d;
CGetFile(LF_DIR, &d, _nolock, NORDIR);
_filelevel = d.Flags;
openall(FALSE, excl, max); openall(FALSE, excl, max);
} }
}
bool TPrefix::test(const char* s) const bool TPrefix::test(const char* s) const

View File

@ -23,6 +23,7 @@ class TPrefix : public TObject
TString _prefix; TString _prefix;
int* _dirfl; int* _dirfl;
int* _recfl; int* _recfl;
long _filelevel;
SecDef* _fdir; SecDef* _fdir;
SecDef* _rdir; SecDef* _rdir;
@ -36,6 +37,8 @@ public:
long get_codditta() const ; long get_codditta() const ;
bool set_codditta(long codditta, bool force = FALSE); bool set_codditta(long codditta, bool force = FALSE);
const char* name() const { return _prefix;} const char* name() const { return _prefix;}
long filelevel() const {return _filelevel;}
TPrefix(); TPrefix();
virtual ~TPrefix(); virtual ~TPrefix();
}; };
@ -59,5 +62,3 @@ extern TPrefix* prefhndl
#endif // __PREFIX_H #endif // __PREFIX_H