|
PSCF v1.3.3
|
Parser for an XML file declaration tag (first line in file). More...
#include <XmlXmlTag.h>
Public Member Functions | |
| XmlXmlTag () | |
| Constructor. | |
| ~XmlXmlTag () | |
| Destructor. | |
| bool | match (const std::string &string, int begin) |
| Attempt to match entire xml tag. | |
| Public Member Functions inherited from Util::XmlBase | |
| XmlBase () | |
| Constructor. | |
| ~XmlBase () | |
| Destructor. | |
| void | setString (const std::string &string, int cursor=0) |
| Initialize string and cursor. | |
| void | setCursor (int cursor) |
| Set cursor. | |
| void | skip () |
| Skip leading white space, if any. | |
| void | next () |
| Advance to the next character. | |
| const std::string & | string () const |
| Return the associated string. | |
| int | cursor () const |
| Return the index of the current character. | |
| int | c () const |
| Return the current character. | |
| bool | isEnd () const |
| Has the cursor reached the end of the string? | |
Parser for an XML file declaration tag (first line in file).
The match function attempts to match an xml file declaration tag, such as: <?xml version="1.0" encoding="UTF-8"?>.
Definition at line 27 of file XmlXmlTag.h.
| Util::XmlXmlTag::XmlXmlTag | ( | ) |
Constructor.
Definition at line 14 of file XmlXmlTag.cpp.
| Util::XmlXmlTag::~XmlXmlTag | ( | ) |
Destructor.
Definition at line 18 of file XmlXmlTag.cpp.
| bool Util::XmlXmlTag::match | ( | const std::string & | string, |
| int | begin ) |
Attempt to match entire xml tag.
| string | containing text of XML tag |
| begin | index of first character |
Definition at line 21 of file XmlXmlTag.cpp.
References Util::XmlAttribute::label().