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