TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / generic / EventGenerator.h
1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3
4 #ifndef EventGenerator_INCLUDED
5 #define EventGenerator_INCLUDED 1
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 #include "SGMLApplication.h"
12
13 class SP_API EventGenerator {
14 public:
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;
23   // called after run
24   virtual EventGenerator *
25     makeSubdocEventGenerator(const SGMLApplication::Char *systemId,
26                              size_t systemIdLength);
27 };
28
29 #endif /* not EventGenerator_INCLUDED */