34 #define BESXMLInfo_h_ 1 36 #include <libxml/encoding.h> 37 #include <libxml/xmlwriter.h> 51 xmlTextWriterPtr _writer ;
52 xmlBufferPtr _doc_buf ;
59 virtual void begin_tag(
const string &tag_name,
62 map<string,string> *attrs = 0 ) ;
71 virtual void add_tag(
const string &tag_name,
72 const string &tag_data,
73 map<string,string> *attrs = 0 ) ;
74 virtual void begin_tag(
const string &tag_name ,
75 map<string,string> *attrs = 0 ) ;
76 virtual void end_tag(
const string &tag_name ) ;
78 virtual void add_data(
const string &s ) ;
79 virtual void add_space(
unsigned long num_spaces ) ;
80 virtual void add_break(
unsigned long num_breaks ) ;
83 const string &name ) ;
84 virtual void print( ostream &strm ) ;
88 virtual void dump( ostream &strm )
const ;
93 #endif // BESXMLInfo_h_ virtual void dump(ostream &strm) const
dumps information about this object
virtual void end_response()
end the response
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object
virtual void end_tag(const string &tag_name)
end a tagged part of the informational response
virtual void print(ostream &strm)
print the information from this informational object to the specified stream
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
BESXMLInfo()
constructs an informational response object as an xml document
informational response object
represents an xml formatted response object
virtual void add_space(unsigned long num_spaces)
add a space to the informational response
virtual void add_break(unsigned long num_breaks)
add a line break to the information
virtual void begin_tag(const string &tag_name, const string &ns, const string &uri, map< string, string > *attrs=0)
begin a tagged part of the information, information to follow
static BESInfo * BuildXMLInfo(const string &info_type)
Structure storing information used by the BES to handle the request.
virtual void add_tag(const string &tag_name, const string &tag_data, map< string, string > *attrs=0)
add tagged information to the inforamtional response
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the text information as text
virtual void add_data(const string &s)
add data to this informational object.