51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
|
#ifndef __REPUTILS_H
|
||
|
#define __REPUTILS_H
|
||
|
|
||
|
#ifndef __REPORT_H
|
||
|
#include <report.h>
|
||
|
#endif
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
// TAS400_report
|
||
|
// Report dinamico per visualizzare file di testo AS400
|
||
|
///////////////////////////////////////////////////////////
|
||
|
|
||
|
class TAS400_report : public TReport
|
||
|
{
|
||
|
TRecordset* _set; // TAS400_recordset
|
||
|
bool _owned;
|
||
|
|
||
|
protected:
|
||
|
virtual TRecordset* recordset() const;
|
||
|
virtual bool set_recordset(TRecordset* recset);
|
||
|
|
||
|
public:
|
||
|
virtual bool set_recordset(const TString& query);
|
||
|
|
||
|
TAS400_report(const char* query);
|
||
|
TAS400_report(TRecordset& recset); // TAS400_recordset!!!
|
||
|
};
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
// TLog_report
|
||
|
// Report per visualizzare file di log
|
||
|
///////////////////////////////////////////////////////////
|
||
|
|
||
|
class TLog_report : public TReport
|
||
|
{
|
||
|
TString _title;
|
||
|
|
||
|
protected:
|
||
|
virtual bool use_mask() { return false; }
|
||
|
virtual bool get_usr_val(const TString& name, TVariant& var) const;
|
||
|
virtual bool set_usr_val(const TString& name, const TVariant& var);
|
||
|
|
||
|
public:
|
||
|
void reset();
|
||
|
bool log(int severity, const char* msg); // severity: 0=normal; 1=warning; 2=error
|
||
|
void set_title(const char* title);
|
||
|
TLog_report(const char* title, const char* name = "bagn010a");
|
||
|
};
|
||
|
|
||
|
#endif
|