Files correlati : Ricompilazione Demo : [ ] Commento :corretta imperfezione git-svn-id: svn://10.65.10.50/trunk@14776 c028cbd2-c16b-5b4b-a496-9718f37d4682
61 lines
1.2 KiB
C++
Executable File
61 lines
1.2 KiB
C++
Executable File
#ifndef __VELIB07_H
|
|
#define __VELIB07_H
|
|
|
|
#ifndef __VELIB_H
|
|
#include "velib.h"
|
|
#endif
|
|
|
|
#ifndef __REPORT_H
|
|
#include <report.h>
|
|
#endif
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TDocument_cache
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TDocument_cache : TCache
|
|
{
|
|
protected:
|
|
virtual TObject* key2obj(const char* key);
|
|
|
|
public:
|
|
TDocumento& doc(const TRectype& rec);
|
|
|
|
TDocument_cache();
|
|
virtual ~TDocument_cache();
|
|
};
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TDocument_recordset
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TDocument_recordset : public TISAM_recordset
|
|
{
|
|
TDocument_cache _cache;
|
|
|
|
protected:
|
|
virtual const TVariant& get_field(int logic, const char* field) const;
|
|
|
|
public:
|
|
|
|
TDocument_recordset(const char* use) : TISAM_recordset(use) { }
|
|
virtual ~TDocument_recordset() { }
|
|
};
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TDocument_report
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TDocument_report : public TReport
|
|
{
|
|
protected:
|
|
virtual bool set_recordset(const TString& query);
|
|
|
|
public:
|
|
bool load(const char* name);
|
|
};
|
|
|
|
#endif
|