27 lines
363 B
C
27 lines
363 B
C
|
#ifndef __LOG_H
|
||
|
#define __LOG_H
|
||
|
|
||
|
#ifndef __STRINGS_H
|
||
|
#include <strings.h>
|
||
|
#endif
|
||
|
|
||
|
class TRecordset;
|
||
|
|
||
|
class TError_log : public TObject
|
||
|
{
|
||
|
TString _rep;
|
||
|
TRecordset* _log;
|
||
|
|
||
|
public:
|
||
|
void set_rep(const char* rep) { _rep = rep; }
|
||
|
void set_header(const char* header);
|
||
|
void log(long sev, const char* msg);
|
||
|
bool show();
|
||
|
|
||
|
|
||
|
TError_log();
|
||
|
~TError_log();
|
||
|
};
|
||
|
|
||
|
#endif
|