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,7 +158,13 @@ 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);
}
} }

View File

@ -19,25 +19,28 @@
class TPrefix : public TObject class TPrefix : public TObject
{ {
// @DPRIV // @DPRIV
TString _prefix; TString _prefix;
int* _dirfl; int* _dirfl;
int* _recfl; int* _recfl;
SecDef* _fdir; long _filelevel;
SecDef* _rdir; SecDef* _fdir;
SecDef* _rdir;
bool test(const char* s) const ;
void put(); bool test(const char* s) const ;
void put();
public: public:
// @FPUB // @FPUB
void set(const char* name = NULL, bool force = FALSE, TFilelock mode = _manulock); void set(const char* name = NULL, bool force = FALSE, TFilelock mode = _manulock);
bool test(long codditta) const; bool test(long codditta) const;
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;}
TPrefix(); long filelevel() const {return _filelevel;}
virtual ~TPrefix();
TPrefix();
virtual ~TPrefix();
}; };
@ -51,13 +54,11 @@ const char* firm2dir(long codditta);
extern TPrefix* prefhndl extern TPrefix* prefhndl
// @END // @END
#ifdef __PREFIX_CPP #ifdef __PREFIX_CPP
= NULL ; = NULL ;
#undef extern #undef extern
#else #else
; ;
#endif #endif
#endif // __PREFIX_H #endif // __PREFIX_H