PSCF v1.1
XmlXmlTag.h
1#ifndef UTIL_XML_XML_TAG_H
2#define UTIL_XML_XML_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
27 class XmlXmlTag : public XmlBase
28 {
29
30 public:
31
35 XmlXmlTag();
36
40 ~XmlXmlTag();
41
49 bool match(const std::string& string, int begin);
50
51 private:
52
56 std::string label_;
57
61 bool endBracket_;
62
69 bool matchLabel(const std::string& string, int begin);
70
77 bool matchAttribute(XmlAttribute& attribute);
78
82 bool endBracket()
83 { return endBracket_; }
84
85 };
86
87}
88#endif
Parser for an XML attribute.
Definition: XmlAttribute.h:24
Base class for classes that parse XML markup tags.
Definition: XmlBase.h:23
Parser for an XML file declaration tag (first line in file).
Definition: XmlXmlTag.h:28
bool match(const std::string &string, int begin)
Attempt to match entire xml tag.
Definition: XmlXmlTag.cpp:21
XmlXmlTag()
Constructor.
Definition: XmlXmlTag.cpp:14
~XmlXmlTag()
Destructor.
Definition: XmlXmlTag.cpp:18
Utility classes for scientific computation.
Definition: accumulators.mod:1