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,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user