Category : C++ Source Code
Archive   : PXBEN.ZIP
Filename : PDXTBL.H

 
Output of file : PDXTBL.H contained in archive : PXBEN.ZIP
/*ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ ³
³ Module: PDXTBL.H ³
³ Author: Rick Kligman ³
³ Purpose: Paradox Table Base Class Header ³
³ ³
³ Last Modified: 05-17-91 00:34am ³
³ ³
³ Copyright 1991 Rick Kligman ³
³ This code may be freely used and distributed in commercial apps ³
³ provided some mention of PXBuddy++ is made in the documentation. ³
³ ³
³ Version 1.00 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ */

#ifndef RKPDXTBL_H
#define RKPDXTBL_H

#ifndef __STRING_H
#include
#endif

#ifndef PXENGINE_H
extern "C" {
#include
}
#endif

#ifndef RKPDXFLD_H
#include "pdxfld.h"
#endif

// ÖÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·
// º Base class for Tables º
// ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

class pxtable
{
protected:

int first_open; // table opened flag
absfld **fldptr; // array of pointers to abstract field class
int blanks_as_zeros; // flag for zeros being written or blanks
int numflds; // number of fields in the table
int tbl_open; // tells whether table is open or not

virtual int init_flds() { return PXSUCCESS; }

public:

TABLEHANDLE th;
RECORDHANDLE rh;
LOCKHANDLE lh;
char tblname [60];
int tblmarker; // flag for EOT or BOT
int keyed; // is this table keyed?

pxtable();
~pxtable();

int open(char *tablename = "", FIELDHANDLE fh = 0);
int read_rec();
int read_flds();
int put_recappend();
int put_recinsert();
int put_recupdate();
int put_flds();
int close();
int recget() { return( PXRecGet(th, rh) ); }
int recupdate() { return( PXRecUpdate(th, rh) ); }
int recinsert() { return( PXRecInsert(th, rh) ); }
int recappend() { return( PXRecAppend(th, rh) ); }
int recnext();
int recprev();
};

#endif


  3 Responses to “Category : C++ Source Code
Archive   : PXBEN.ZIP
Filename : PDXTBL.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/