bes
Updated for version 3.20.5
|
34 #define BESXMLInfo_h_ 1
36 #include <libxml/encoding.h>
37 #include <libxml/xmlwriter.h>
50 xmlTextWriterPtr _writer;
51 xmlBufferPtr _doc_buf;
58 virtual void begin_tag(
const string &tag_name,
const string &ns,
const string &uri, map<string, string> *attrs = 0);
67 virtual void add_tag(
const string &tag_name,
const string &tag_data, map<string, string> *attrs = 0);
68 virtual void begin_tag(
const string &tag_name, map<string, string> *attrs = 0);
69 virtual void end_tag(
const string &tag_name);
71 virtual void add_data(
const string &s);
72 virtual void add_space(
unsigned long num_spaces);
73 virtual void add_break(
unsigned long num_breaks);
76 virtual void print(ostream &strm);
79 virtual void dump(ostream &strm)
const;
81 static BESInfo *BuildXMLInfo(
const string &info_type);
84 #endif // BESXMLInfo_h_
virtual void print(ostream &strm)
print the information from this informational object to the specified stream
virtual void end_response()
end the response
represents an xml formatted response object
virtual void begin_response(const string &response_name, BESDataHandlerInterface &dhi)
begin the informational response
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object
informational response object
BESXMLInfo()
constructs an informational response object as an xml document
virtual void add_break(unsigned long num_breaks)
add a line break to the information
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. If buffering is not set then the information is output directl...
virtual void add_space(unsigned long num_spaces)
add a space to the informational response
virtual void dump(ostream &strm) const
dumps information about this object
virtual void add_tag(const string &tag_name, const string &tag_data, map< string, string > *attrs=0)
add tagged information to the informational response
Structure storing information used by the BES to handle the request.
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
virtual void end_tag(const string &tag_name)
end a tagged part of the informational response