24 #ifndef DOCGENERATOR_H
25 #define DOCGENERATOR_H
30 #include "doctemplate.h"
43 bool gen_source_highlight_version;
44 string input_file_name;
48 string doc_background;
55 DocGenerator(
const string &s,
const string &i,
const string &h,
56 const string &f,
const string &c,
const string &back,
bool entire,
57 const string &inputlang,
58 const string &start_tmpl,
const string &end_tmpl) :
59 title(s), gen_source_highlight_version(
true), input_file_name(i),
60 doc_header(h), doc_footer(f), css_url(c), doc_background(back),
61 entire_doc(entire), input_lang(inputlang), docTemplate(
DocTemplate(start_tmpl,
64 DocGenerator(
const string &start_tmpl,
const string &end_tmpl) :
65 gen_source_highlight_version(
true), docTemplate(
DocTemplate(start_tmpl,
91 gen_source_highlight_version = b;
94 void setInputFileName(
const std::string &filename) {
95 input_file_name = filename;
98 void setTitle(
const std::string &_title) {
102 void setInputLang(
const std::string &_input_lang) {
103 input_lang = _input_lang;
106 void setBackgroundColor(
const std::string &bg) {
110 void setCss(
const std::string &css) {
114 void setHeader(
const std::string &_header) {
115 doc_header = _header;
118 void setFooter(
const std::string &_footer) {
119 doc_footer = _footer;
125 #endif // DOCGENERATOR_H
Given a DocTemplate it generates the start of the document and the end, using variables such as title...
Definition: docgenerator.h:40
void generate_end_doc(std::ostream *sout)
Generates the end of the document into the passed ostream.
Definition: docgenerator.cc:52
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
void set_gen_version(bool b)
Sets the version of the generator (i.e., of source-highlight)
Definition: docgenerator.h:90
Definition: doctemplate.h:18
void generate_start_doc(std::ostream *sout)
Generates the start of the document into the passed ostream.
Definition: docgenerator.cc:31