UQTk: Uncertainty Quantification Toolkit 3.1.5
XMLParser.h
Go to the documentation of this file.
1/* =====================================================================================
2
3 The UQ Toolkit (UQTk) version 3.1.5
4 Copyright (2024) NTESS
5 https://www.sandia.gov/UQToolkit/
6 https://github.com/sandialabs/UQTk
7
8 Copyright 2024 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
9 Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10 retains certain rights in this software.
11
12 This file is part of The UQ Toolkit (UQTk)
13
14 UQTk is open source software: you can redistribute it and/or modify
15 it under the terms of BSD 3-Clause License
16
17 UQTk is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 BSD 3 Clause License for more details.
21
22 You should have received a copy of the BSD 3 Clause License
23 along with UQTk. If not, see https://choosealicense.com/licenses/bsd-3-clause/.
24
25 Questions? Contact the UQTk Developers at https://github.com/sandialabs/UQTk/discussions
26 Sandia National Laboratories, Livermore, CA, USA
27===================================================================================== */
28// -*- C++ -*-
29
30#ifndef _util_xml_class_XMLParser_
31#define _util_xml_class_XMLParser_
32
33#include "XMLElement.h"
34#include <iostream>
35
42class XMLParser : virtual public Object {
43 template <class T> friend class RefPtr;
44 template <class T> friend class ConstRefPtr;
45public:
47 XMLParser();
48
50 virtual ~XMLParser();
51
53 virtual RefPtr<XMLElement> parse(std::istream&) = 0;
54};
55
56#endif // _util_xml_class_XMLParser_
Definition Object.h:47
Definition RefPtr.h:46
Definition XMLParser.h:42
virtual RefPtr< XMLElement > parse(std::istream &)=0
Parse the given input buffer and return the parse tree.
XMLParser()
Default constructor. Intended for derived classes.
Definition XMLParser.cpp:35
friend class ConstRefPtr
Definition XMLParser.h:44
virtual ~XMLParser()
Destructor.
Definition XMLParser.cpp:42