OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESXMLWriter.h
Go to the documentation of this file.
1 /*
2  * BESXMLWriter.h
3  *
4  * Created on: Jul 28, 2010
5  * Author: jimg
6  */
7 
8 #ifndef XMLWRITER_H_
9 #define XMLWRITER_H_
10 
11 #include <libxml/encoding.h>
12 #include <libxml/xmlwriter.h>
13 
14 #include <string>
15 
16 using namespace std;
17 
18 class BESXMLWriter {
19 private:
20  // Various xml writer stuff
21  xmlTextWriterPtr d_writer;
22  xmlBufferPtr d_doc_buf;
23  bool d_started;
24  bool d_ended;
25  string d_ns_uri;
26 
27  string d_doc;
28 
29  void m_cleanup() ;
30 
31 public:
32  BESXMLWriter();
33  virtual ~BESXMLWriter();
34 
35  xmlTextWriterPtr get_writer() { return d_writer; }
36  // string get_ns_uri() const { return d_ns_uri; }
37  const char *get_doc();
38 };
39 
40 #endif /* XMLWRITER_H_ */