1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
4 #ifndef EventGenerator_INCLUDED
5 #define EventGenerator_INCLUDED 1
11 #include "SGMLApplication.h"
13 class SP_API EventGenerator {
15 virtual ~EventGenerator();
16 // Can be called at most once for any object.
17 // Returns number of errors.
18 virtual unsigned run(SGMLApplication &) = 0;
19 // may be called at any time
20 virtual void inhibitMessages(bool);
21 // may be called at any time, even from another thread
22 virtual void halt() = 0;
24 virtual EventGenerator *
25 makeSubdocEventGenerator(const SGMLApplication::Char *systemId,
26 size_t systemIdLength);
29 #endif /* not EventGenerator_INCLUDED */