bes
Updated for version 3.20.6
|
41 #include "BESResponseObject.h"
42 #include "BESDataHandlerInterface.h"
43 #include "BESTransmitter.h"
68 bool _response_started;
70 std::stack<std::string> _tags;
71 std::string _response_name;
75 BESInfo(
const std::string &buffered_key, std::ostream *strm,
bool strm_owned);
80 virtual void end_response();
82 virtual void add_tag(
const std::string &tag_name,
const std::string &tag_data, std::map<std::string, std::string> *attrs = 0) = 0;
83 virtual void begin_tag(
const std::string &tag_name, std::map<std::string, std::string> *attrs = 0);
84 virtual void end_tag(
const std::string &tag_name);
86 virtual void add_data(
const std::string &s);
87 virtual void add_space(
unsigned long num_spaces) = 0;
88 virtual void add_break(
unsigned long num_breaks) = 0;
105 virtual void print(std::ostream &strm);
120 virtual void dump(std::ostream &strm)
const;
virtual void print(std::ostream &strm)
print the information from this informational object to the specified stream
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
informational response object
virtual void add_data_from_file(const std::string &key, const std::string &name)
add data from a file to the informational object.
virtual void add_exception(BESError &e, const std::string &admin)
add exception information to this informational object
virtual void add_data(const std::string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void dump(std::ostream &strm) const
Displays debug information about this object.
virtual void begin_response(const std::string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
BESInfo()
constructs a BESInfo object
Structure storing information used by the BES to handle the request.
Abstract exception class for the BES with basic string message.
virtual bool is_buffered()
return whether the information is to be buffered or not.
Abstract base class representing a specific set of information in response to a request to the BES.