55 BESTextInfo(
const std::string &key, std::ostream *strm,
bool strm_owned,
bool ishttp =
false);
60 void add_tag(
const std::string &tag_name,
61 const std::string &tag_data,
62 std::map<std::string, std::string, std::less<>> *attrs =
nullptr)
override;
64 void begin_tag(
const std::string &tag_name,
65 std::map<std::string, std::string, std::less<>> *attrs =
nullptr)
override;
66 void end_tag(
const std::string &tag_name)
override;
68 void add_data(
const std::string &s)
override;
69 void add_space(
unsigned long num_spaces)
override;
70 void add_break(
unsigned long num_breaks)
override;
75 void dump(std::ostream &strm)
const override;
77 static BESInfo *BuildTextInfo(
const std::string &info_type);
void add_data_from_file(const std::string &key, const std::string &name) override
add data from a file to the informational object
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
BESTextInfo(bool ishttp=false)
constructs a basic text information response object.
void add_space(unsigned long num_spaces) override
add a space to the informational response
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
void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi) override
transmit the text information as text
void dump(std::ostream &strm) const override
dumps information about this object
void add_data(const std::string &s) override
add string data to the informational response
void end_tag(const std::string &tag_name) override
end a tagged part of the informational response
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