libdap++
Updated for version 3.14.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
XMLWriter.h
Go to the documentation of this file.
1
2
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
3
// Access Protocol.
4
5
// Copyright (c) 2010 OPeNDAP, Inc.
6
// Author: James Gallagher <jgallagher@opendap.org>
7
//
8
// This library is free software; you can redistribute it and/or
9
// modify it under the terms of the GNU Lesser General Public
10
// License as published by the Free Software Foundation; either
11
// version 2.1 of the License, or (at your option) any later version.
12
//
13
// This library is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
// Lesser General Public License for more details.
17
//
18
// You should have received a copy of the GNU Lesser General Public
19
// License along with this library; if not, write to the Free Software
20
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
//
22
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
23
/*
24
* XMLWriter.h
25
*
26
* Created on: Jul 28, 2010
27
* Author: jimg
28
*/
29
30
#ifndef XMLWRITER_H_
31
#define XMLWRITER_H_
32
33
#include <libxml/encoding.h>
34
#include <libxml/xmlwriter.h>
35
36
#include <string>
37
38
namespace
libdap
{
39
40
class
XMLWriter
{
41
private
:
42
// Various xml writer stuff
43
xmlTextWriterPtr d_writer;
44
xmlBufferPtr d_doc_buf;
45
bool
d_started;
46
bool
d_ended;
47
48
std::string d_doc;
49
50
void
m_cleanup() ;
51
52
public
:
53
XMLWriter
(
const
std::string &pad =
" "
);
54
virtual
~XMLWriter
();
55
56
xmlTextWriterPtr
get_writer
() {
return
d_writer; }
57
const
char
*
get_doc
();
58
unsigned
int
get_doc_size
();
59
};
60
61
}
// namespace libdap
62
63
#endif
/* XMLWRITER_H_ */
libdap::XMLWriter::get_writer
xmlTextWriterPtr get_writer()
Definition:
XMLWriter.h:56
libdap
Definition:
AlarmHandler.h:35
libdap::XMLWriter::get_doc
const char * get_doc()
Definition:
XMLWriter.cc:105
libdap::XMLWriter::XMLWriter
XMLWriter(const std::string &pad=" ")
Definition:
XMLWriter.cc:45
libdap::XMLWriter::~XMLWriter
virtual ~XMLWriter()
Definition:
XMLWriter.cc:83
libdap::XMLWriter
Definition:
XMLWriter.h:40
libdap::XMLWriter::get_doc_size
unsigned int get_doc_size()
Definition:
XMLWriter.cc:129
XMLWriter.h
Generated by
1.8.9.1