Source-highlight Library
srchilite::DocGenerator Class Reference

Given a DocTemplate it generates the start of the document and the end, using variables such as title, file_name, header, etc. More...

#include <docgenerator.h>

Collaboration diagram for srchilite::DocGenerator:

Public Member Functions

 DocGenerator (const string &s, const string &i, const string &h, const string &f, const string &c, const string &back, bool entire, const string &inputlang, const string &start_tmpl, const string &end_tmpl)
 
 DocGenerator (const string &start_tmpl, const string &end_tmpl)
 
void generate_start_doc (std::ostream *sout)
 Generates the start of the document into the passed ostream. More...
 
void generate_end_doc (std::ostream *sout)
 Generates the end of the document into the passed ostream. More...
 
void set_gen_version (bool b)
 Sets the version of the generator (i.e., of source-highlight)
 
void setInputFileName (const std::string &filename)
 
void setTitle (const std::string &_title)
 
void setInputLang (const std::string &_input_lang)
 
void setBackgroundColor (const std::string &bg)
 
void setCss (const std::string &css)
 
void setHeader (const std::string &_header)
 
void setFooter (const std::string &_footer)
 

Protected Attributes

string title
 
bool gen_source_highlight_version
 
string input_file_name
 
string doc_header
 
string doc_footer
 
string css_url
 
string doc_background
 
bool entire_doc
 
string input_lang
 
DocTemplate docTemplate
 

Detailed Description

Given a DocTemplate it generates the start of the document and the end, using variables such as title, file_name, header, etc.

Member Function Documentation

void srchilite::DocGenerator::generate_end_doc ( std::ostream *  sout)

Generates the end of the document into the passed ostream.

Parameters
soutthe stream for generating the output
void srchilite::DocGenerator::generate_start_doc ( std::ostream *  sout)

Generates the start of the document into the passed ostream.

Parameters
soutthe stream for generating the output

The documentation for this class was generated from the following files: