34#define BESTextInfo_h_ 1
55 BESTextInfo(
const std::string &key, std::ostream *strm,
bool strm_owned,
bool ishttp =
false);
60 virtual void add_tag(
const std::string &tag_name,
const std::string &tag_data, std::map<std::string, std::string> *attrs = 0);
61 virtual void begin_tag(
const std::string &tag_name, std::map<std::string, std::string> *attrs = 0);
62 virtual void end_tag(
const std::string &tag_name);
64 virtual void add_data(
const std::string &s);
65 virtual void add_space(
unsigned long num_spaces);
66 virtual void add_break(
unsigned long num_breaks);
71 virtual void dump(std::ostream &strm)
const;
73 static BESInfo *BuildTextInfo(
const std::string &info_type);
Structure storing information used by the BES to handle the request.
informational response object
represents simple text information in a response object, such as version and help information.
virtual void add_space(unsigned long num_spaces)
add a space to the informational response
virtual void add_break(unsigned long num_breaks)
add a line break to the information
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 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 begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the text information as text
virtual void end_tag(const std::string &tag_name)
end a tagged part of the informational response
virtual void add_data(const std::string &s)
add string data to the informational response
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