c01719588e
Files correlati : Ricompilazione Demo : [ ] Commento :aggiunti i metodi per la gestione del report di log in modo che faccia solo la preview e non stampi gli errori multipli git-svn-id: svn://10.65.10.50/trunk@15061 c028cbd2-c16b-5b4b-a496-9718f37d4682
54 lines
1.4 KiB
C++
Executable File
54 lines
1.4 KiB
C++
Executable File
#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;
|
|
bool _kill_duplicates;
|
|
|
|
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);
|
|
void kill_duplicates(bool k = true) {_kill_duplicates = k;}
|
|
const TString& title() const { return _title; }
|
|
TLog_report(const char* title, const char* name = "bagn010a");
|
|
};
|
|
|
|
#endif
|