Below is the header file that I am using for a generic record. I have been
adding methods as I need them so it is by now means complete. Eventually I
would want to include all methods that have to do with DB access on a
record level.
If you have any suggestions I'd love to hear them
class CSARecord
{
public:
CSARecord();
~CSARecord();
Boolean OpenDataBase(DmOpenRef *dbP, ULong DBType, ULong Creator, char
*DBName);
void OpenDataBase(ULong DBType, ULong Creator, char *DBName);
virtual void PackRecord(VoidHand h);
virtual void UnPackRecord(VoidHand hproblem);
Boolean GetRecord();
Boolean GetRecord(long recordToSelect);
DmOpenRef recordDatabase;
void InitDB(ULong DBType, ULong Creator, char *DBName);
void WriteRecord();
int getTotalRecords();
protected:
int recordNumber;
VoidHand packedRecord;
VoidHand recordHandle;
Boolean modifiedRecord;
int totalRecords;
};
Brian McClung
[EMAIL PROTECTED]