1
// Copyright (C) 2003-2006 Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2003-07-15
5
// Last changed: 2006-05-23
10
#include <libxml/parser.h>
13
#include <dolfin/common/types.h>
28
/// Callback for start of XML element
29
virtual void startElement(const xmlChar* name, const xmlChar** attrs) = 0;
31
/// Callback for end of XML element
32
virtual void endElement(const xmlChar* name) = 0;
34
/// Callback for start of XML file (optional)
35
virtual void open(std::string filename);
37
/// Callback for end of XML file, should return true iff data is ok (optional)
42
// Parse an integer value
43
int parseInt(const xmlChar* name, const xmlChar** attrs, const char *attribute);
45
// Parse an unsigned integer value
46
uint parseUnsignedInt(const xmlChar* name, const xmlChar** attrs, const char *attribute);
49
real parseReal(const xmlChar* name, const xmlChar** attrs, const char* attribute);
52
std::string parseString(const xmlChar* name, const xmlChar** attrs, const char* attribute);
55
bool parseBool(const xmlChar* name, const xmlChar** attrs, const char* attribute);