34#define BESHTMLInfo_h_ 1
53 BESHTMLInfo(
const std::string &key, std::ostream *strm,
bool strm_owned);
59 void add_tag(
const std::string &tag_name,
60 const std::string &tag_data,
61 std::map<std::string, std::string, std::less<>> *attrs =
nullptr)
override;
62 void begin_tag(
const std::string &tag_name,
63 std::map<std::string, std::string, std::less<>> *attrs =
nullptr)
override;
64 void end_tag(
const std::string &tag_name)
override;
66 void add_data(
const std::string &s)
override;
67 void add_space(
unsigned long num_spaces)
override;
68 void add_break(
unsigned long num_breaks)
override;
73 void dump(std::ostream &strm)
const override;
75 static BESInfo *BuildHTMLInfo(
const std::string &info_type);
Structure storing information used by the BES to handle the request.
void add_data(const std::string &s) override
add data to this informational object.
void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi) override
transmit the text information as text
void begin_tag(const std::string &tag_name, std::map< std::string, std::string, std::less<> > *attrs=nullptr) override
begin a tagged part of the information, information to follow
void add_break(unsigned long num_breaks) override
add a line break to the information
void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi) override
begin the informational response
void end_tag(const std::string &tag_name) override
end a tagged part of the informational response
void dump(std::ostream &strm) const override
dumps information about this object
void add_data_from_file(const std::string &key, const std::string &name) override
add data from a file to the informational object
void add_tag(const std::string &tag_name, const std::string &tag_data, std::map< std::string, std::string, std::less<> > *attrs=nullptr) override
add tagged information to the inforamtional response
BESHTMLInfo()
constructs an html formatted information response object.
void add_space(unsigned long num_spaces) override
add a space to the informational response
void end_response() override
end the response
BESInfo()
constructs a BESInfo object