Aggiunto livello dei files
git-svn-id: svn://10.65.10.50/trunk@290 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
893e4c3f1a
commit
ed571ef5d7
@ -1,6 +1,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <lffiles.h>
|
||||
|
||||
#define __PREFIX_CPP
|
||||
#include <prefix.h>
|
||||
@ -157,8 +158,14 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool TPrefix::test(const char* s) const
|
||||
|
@ -23,6 +23,7 @@ class TPrefix : public TObject
|
||||
TString _prefix;
|
||||
int* _dirfl;
|
||||
int* _recfl;
|
||||
long _filelevel;
|
||||
SecDef* _fdir;
|
||||
SecDef* _rdir;
|
||||
|
||||
@ -36,6 +37,8 @@ public:
|
||||
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();
|
||||
};
|
||||
@ -59,5 +62,3 @@ extern TPrefix* prefhndl
|
||||
|
||||
#endif // __PREFIX_H
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user