EPICS ARCHIVER V4
|
Helper for printing a web page to a socket. More...
#include <HTMLPage.h>
Public Member Functions | |
HTMLPage (SOCKET socket, const char *title, int refresh=0) | |
Create web page for socket with given title. More... | |
void | line (const char *line) |
Add a line. More... | |
void | line (const stdString &line) |
Add a line. More... | |
void | out (const char *line) |
Add verbatim output. More... | |
void | out (const char *line, size_t length) |
Add verbatim output. More... | |
void | out (const stdString &line) |
Add verbatim output. More... | |
void | openTable (int colspan, const char *column,...) |
Start a table with column headers. More... | |
void | tableLine (const char *item,...) |
Add line to table. More... | |
void | closeTable () |
End a table. More... | |
Static Public Attributes | |
static bool | with_config |
Should bottom menu include a 'config' link? | |
Helper for printing a web page to a socket.
HTMLPage::HTMLPage | ( | SOCKET | socket, |
const char * | title, | ||
int | refresh = 0 |
||
) |
Create web page for socket with given title.
Maybe also with a reload-refresh every given seconds.
void HTMLPage::closeTable | ( | ) |
End a table.
void HTMLPage::line | ( | const char * | line | ) |
Add a line.
void HTMLPage::line | ( | const stdString & | line | ) |
Add a line.
void HTMLPage::openTable | ( | int | colspan, |
const char * | column, | ||
... | |||
) |
Start a table with column headers.
Arguments: size, name, size, name, ...., 0.
Last column name must be 0.
void HTMLPage::out | ( | const char * | line | ) |
Add verbatim output.
void HTMLPage::out | ( | const char * | line, |
size_t | length | ||
) |
Add verbatim output.
void HTMLPage::out | ( | const stdString & | line | ) |
Add verbatim output.
void HTMLPage::tableLine | ( | const char * | item, |
... | |||
) |
Add line to table.
Number of items, ending in 0, must match call to openTable(). Meaning: There must be an item for each column. If a columns was declared with colspan==2 in openTable, two items are required for that column.