46 #include "BESResponseObject.h" 47 #include "BESDataHandlerInterface.h" 48 #include "BESTransmitter.h" 74 bool _response_started ;
77 string _response_name ;
81 BESInfo(
const string &buffered_key,
82 ostream *strm,
bool strm_owned ) ;
87 virtual void end_response( ) ;
89 virtual void add_tag(
const string &tag_name,
90 const string &tag_data,
91 map<string,string> *attrs = 0 ) = 0 ;
92 virtual void begin_tag(
const string &tag_name,
93 map<string,string> *attrs = 0 ) ;
94 virtual void end_tag(
const string &tag_name ) ;
96 virtual void add_data(
const string &s ) ;
97 virtual void add_space(
unsigned long num_spaces ) = 0 ;
98 virtual void add_break(
unsigned long num_breaks ) = 0 ;
101 const string &name ) ;
117 virtual void print( ostream &strm ) ;
129 virtual void dump( ostream &strm )
const ;
virtual void dump(ostream &strm) const
Displays debug information about this object.
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.
BESInfo()
constructs a BESInfo object
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)=0
transmit the informational object
virtual bool is_buffered()
return whether the information is to be buffered or not.
informational response object
Abstract exception class for the BES with basic string message.
virtual void add_exception(BESError &e, const string &admin)
add exception information to this informational object
Structure storing information used by the BES to handle the request.
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_data(const string &s)
add data to this informational object. If buffering is not set then the information is output directl...
virtual void print(ostream &strm)
print the information from this informational object to the specified stream
Abstract base class representing a specific set of information in response to a request to the BES.