1
// Copyright (c) 1996 James Clark
2
// See the file COPYING for copying permission.
4
#ifndef ErrorCountEventHandler_INCLUDED
5
#define ErrorCountEventHandler_INCLUDED 1
15
namespace SP_NAMESPACE {
18
class SP_API ErrorCountEventHandler : public EventHandler {
20
ErrorCountEventHandler(unsigned errorLimit = 0);
21
void setErrorLimit(unsigned maxErrors);
22
const sig_atomic_t *cancelPtr() const;
24
Boolean cancelled() const;
25
unsigned errorCount() const;
26
void message(MessageEvent *);
27
void noteMessage(const Message &);
35
unsigned ErrorCountEventHandler::errorCount() const
41
const sig_atomic_t *ErrorCountEventHandler::cancelPtr() const
47
void ErrorCountEventHandler::cancel()
53
void ErrorCountEventHandler::setErrorLimit(unsigned maxErrors)
55
maxErrors_ = maxErrors;
59
Boolean ErrorCountEventHandler::cancelled() const
68
#endif /* not ErrorCountEventHandler_INCLUDED */