PSCF v1.1
XmlEndTag.h
1#ifndef UTIL_XML_END_TAG_H
2#define UTIL_XML_END_TAG_H
3
4/*
5* Util Package - C++ Utilities for Scientific Computation
6*
7* Copyright 2010 - 2017, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "XmlBase.h"
12#include "XmlAttribute.h"
13#include <sstream>
14#include <vector>
15
16namespace Util
17{
18
24 class XmlEndTag : public XmlBase
25 {
26
27 public:
28
32 XmlEndTag();
33
37 ~XmlEndTag();
38
47 bool match(const std::string& string, int begin);
48
58 void match(const std::string expected,
59 const std::string& string, int begin);
60
64 const std::string label()
65 { return label_; }
66
67 private:
68
72 std::string label_;
73
74 };
75
76}
77#endif
Base class for classes that parse XML markup tags.
Definition: XmlBase.h:23
Parser for an XML end tag.
Definition: XmlEndTag.h:25
~XmlEndTag()
Destructor.
Definition: XmlEndTag.cpp:17
const std::string label()
Label string.
Definition: XmlEndTag.h:64
XmlEndTag()
Constructor.
Definition: XmlEndTag.cpp:14
bool match(const std::string &string, int begin)
Attempt to match any end tag.
Definition: XmlEndTag.cpp:20
Utility classes for scientific computation.
Definition: accumulators.mod:1