Debian Codegraph @

style/DocumentGenerator.h

raw
1 // Copyright (c) 1999 Matthias Clasen
2 // See the file copying.txt for copying permission.
3
4 #ifndef DocumentGenerator_INCLUDED
5 #define DocumentGenerator_INCLUDED 1
6
7 #include "config.h"
8 #include "Node.h"
9 #include <OpenSP/OutputCharStream.h>
10
11 #ifdef DSSSL_NAMESPACE
12 namespace DSSSL_NAMESPACE {
13 #endif
14
15 #ifdef GROVE_NAMESPACE
16 using namespace GROVE_NAMESPACE;
17 #endif
18
19 class DocumentGenerator {
20 public:
21 DocumentGenerator(SdataMapper *, OutputCharStream *);
22 void emit(const NodePtr &);
23 private:
24 void emit(const NodeListPtr &, const GroveString &);
25 void emit(const GroveStringListPtr &,
26 const char *, const char *, const char *);
27 OutputCharStream &os() { return *os_; }
28 Owner<OutputCharStream> os_;
29 SdataMapper *smap_;
30 };
31
32 #ifdef DSSSL_NAMESPACE
33 }
34 #endif
35
36 #endif /* not DocumentGenerator_INCLUDED */
37