33 #ifndef BESTextInfo_h_ 34 #define BESTextInfo_h_ 1 56 bool strm_owned,
bool ishttp =
false ) ;
62 virtual void add_tag(
const string &tag_name,
63 const string &tag_data,
64 map<string,string> *attrs = 0 ) ;
65 virtual void begin_tag(
const string &tag_name,
66 map<string,string> *attrs = 0 ) ;
67 virtual void end_tag(
const string &tag_name ) ;
69 virtual void add_data(
const string &s ) ;
70 virtual void add_space(
unsigned long num_spaces ) ;
71 virtual void add_break(
unsigned long num_breaks ) ;
74 const string &name ) ;
78 virtual void dump( ostream &strm )
const ;
80 static BESInfo *BuildTextInfo(
const string &info_type ) ;
83 #endif // BESTextInfo_h_ virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_space(unsigned long num_spaces)
add a space to the informational response
virtual void begin_tag(const string &tag_name, map< string, string > *attrs=0)
begin a tagged part of the information, information to follow
informational response object
virtual void dump(ostream &strm) const
dumps 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
virtual void add_tag(const string &tag_name, const string &tag_data, map< string, string > *attrs=0)
add tagged information to the inforamtional response
BESTextInfo(bool ishttp=false)
constructs a basic text information response object.
virtual void end_tag(const string &tag_name)
end a tagged part of the informational response
virtual void add_break(unsigned long num_breaks)
add a line break to the information
Structure storing information used by the BES to handle the request.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the text information as text
virtual void add_data(const string &s)
add string data to the informational response