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