32 #ifdef ENABLE_DOCSERVER
38 vector<string> tokens;
40 void begin_page(
string title);
50 void insert_title(
const string& title =
"");
51 void insert_breadcrumb_token(
size_t token_id);
52 void insert_breadcrumbs();
53 void insert_error_message(
const string& error =
"");
55 void insert_stylesheet();
58 void insert_error(
const string& error);
63 void list_variables();
67 void doc_method(
const string& mname);
68 void doc_variable_methods(
const string& vname);
69 void doc_variable(
const string& vname);
70 void doc_agenda(
const string& aname);
71 void doc_group(
const string& gname);
73 void find_token_type();
75 static string html_escape_char(
const char ch);
76 static string html_escape_string(
const string& s);
78 void split_tokens(
const string& s);
86 if (!mos)
throw runtime_error(
"Output stream for docserver is NULL.");
91 Docserver(
const Index port,
const string& baseurl =
"");
93 static std::tuple<size_t, std::vector<string> >
94 list_broken_description_links();
96 static vector<string> find_broken_description_links(
const String& desc,
99 string new_page(
const string& url);
101 void set_ostream(ostream& os) { mos = &os; }
102 void clear_ostream() { mos = NULL; }
104 const string& get_baseurl() {
return mbaseurl; }
105 int launch(
bool daemon);