Costruttore di TIsamtempfile con flag di autodel separato;
Corretta la correzioone del nome di file temp con % in TIsamtempfile git-svn-id: svn://10.65.10.50/trunk@5383 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9d40ef1982
commit
c7ad697b47
@ -1593,7 +1593,7 @@ int TIsamfile::flags(
|
|||||||
// TIsamtempfile
|
// TIsamtempfile
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
TIsamtempfile::TIsamtempfile(int logicnum, const char* radix, bool create)
|
TIsamtempfile::TIsamtempfile(int logicnum, const char* radix, bool create, bool autodel)
|
||||||
: TLocalisamfile(logicnum, 2)
|
: TLocalisamfile(logicnum, 2)
|
||||||
{
|
{
|
||||||
TRecnotype eod = 0;
|
TRecnotype eod = 0;
|
||||||
@ -1631,9 +1631,11 @@ TIsamtempfile::TIsamtempfile(int logicnum, const char* radix, bool create)
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
_autodel = create > TRUE;
|
CHECK(create <=TRUE,"Il flag di autodel ora si setta con il terzo parametro del costruttore");
|
||||||
|
_autodel = autodel;
|
||||||
|
|
||||||
n.insert("%", 0);
|
n.insert("%", 0);
|
||||||
|
|
||||||
open(n, create, eod, eox);
|
open(n, create, eod, eox);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -710,7 +710,7 @@ public:
|
|||||||
void set_autodel(bool val=TRUE)
|
void set_autodel(bool val=TRUE)
|
||||||
{_autodel = val;}
|
{_autodel = val;}
|
||||||
// @cmember Costruttore
|
// @cmember Costruttore
|
||||||
TIsamtempfile(int logicnum, const char* radix, bool create);
|
TIsamtempfile(int logicnum, const char* radix, bool create=TRUE, bool autodel=FALSE);
|
||||||
// @cmember Distruttore
|
// @cmember Distruttore
|
||||||
virtual ~TIsamtempfile();
|
virtual ~TIsamtempfile();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user