Rimosso syscursor.cpp e syscursor.h

git-svn-id: svn://10.65.10.50/trunk@4143 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-02-19 12:12:38 +00:00
parent 4cfcdbb371
commit 559c6ba45b
2 changed files with 0 additions and 72 deletions

View File

@ -1,50 +0,0 @@
#include <syscursor.h>
#include <extcdecl.h>
///////////////////////////////////////////////////////////
// TSystem_cursor
///////////////////////////////////////////////////////////
void TSystem_cursor::mark_deleted(bool deleted)
{
const TRecnotype nitem = items();
for (operator=(0); pos() < nitem; operator++())
{
const TRecnotype nrec = readrec();
if (deleted && curr().valid())
{
curr().discard();
CWrite(&file()->filehnd()->f, curr().string(), nrec, _nolock);
}
else
if (curr().isdeleted())
{
curr().recall();
CWrite(&file()->filehnd()->f, curr().string(), nrec, _nolock);
}
}
}
TSystem_cursor::~TSystem_cursor()
{
TLocalisamfile* f = file();
const int num = f->num();
f->close();
{
TSystemisamfile s(num);
s.packfile();
}
f->open();
}
// *** EOF syscursor.cpp

View File

@ -1,22 +0,0 @@
#ifndef __SYS_CURSOR_H
#define __SYS_CURSOR_H
#ifndef __RELATION_H
#include <relation.h>
#endif
class TSystem_cursor : public TCursor
{
virtual TRecnotype buildcursor(TRecnotype rp);
public:
void mark_deleted(bool deleted = FALSE);
void recall() { mark_deleted(FALSE);}
TSystem_cursor(TRelation* f, const char* filter = "", int key = 1, TRectype* from = NULL, TRectype* to = NULL) : TCursor(f, filter, key, from, to) {}
virtual ~TSystem_cursor() {}
};
#endif
// ** EOF syscursor.h