File: DocumentGenerator.h

package info (click to toggle)
openjade 1.4devel1-20.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,636 kB
  • sloc: cpp: 90,082; sh: 10,847; ansic: 2,365; lisp: 894; perl: 604; makefile: 443; sed: 93
file content (37 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 1999 Matthias Clasen
// See the file copying.txt for copying permission.

#ifndef DocumentGenerator_INCLUDED
#define DocumentGenerator_INCLUDED 1

#include "config.h"
#include "Node.h"
#include <OpenSP/OutputCharStream.h>

#ifdef DSSSL_NAMESPACE
namespace DSSSL_NAMESPACE {
#endif

#ifdef GROVE_NAMESPACE
using namespace GROVE_NAMESPACE;
#endif

class DocumentGenerator {
public:
  DocumentGenerator(SdataMapper *, OutputCharStream *);
  void emit(const NodePtr &);
private:
  void emit(const NodeListPtr &, const GroveString &);
  void emit(const GroveStringListPtr &, 
            const char *, const char *, const char *);
  OutputCharStream &os() { return *os_; }
  Owner<OutputCharStream> os_;
  SdataMapper *smap_;
};

#ifdef DSSSL_NAMESPACE
}
#endif

#endif /* not DocumentGenerator_INCLUDED */