bes
Updated for version 3.20.5
|
46 #include "BESResponseObject.h"
47 #include "BESDataHandlerInterface.h"
48 #include "BESTransmitter.h"
73 bool _response_started;
76 string _response_name;
80 BESInfo(
const string &buffered_key, ostream *strm,
bool strm_owned);
85 virtual void end_response();
87 virtual void add_tag(
const string &tag_name,
const string &tag_data, map<string, string> *attrs = 0) = 0;
88 virtual void begin_tag(
const string &tag_name, map<string, string> *attrs = 0);
89 virtual void end_tag(
const string &tag_name);
91 virtual void add_data(
const string &s);
92 virtual void add_space(
unsigned long num_spaces) = 0;
93 virtual void add_break(
unsigned long num_breaks) = 0;
110 virtual void print(ostream &strm);
125 virtual void dump(ostream &strm)
const;
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_exception(BESError &e, const string &admin)
add exception information to this informational object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
informational response object
virtual void dump(ostream &strm) const
Displays debug information about this object.
virtual void print(ostream &strm)
print the information from this informational object to the specified stream
virtual void add_data(const string &s)
add data to this informational object. If buffering is not set then the information is output directl...
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.
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.