PSCF v1.1
|
Parser for an XML file declaration tag (first line in file). More...
#include <XmlXmlTag.h>
Public Member Functions | |
XmlXmlTag () | |
Constructor. More... | |
~XmlXmlTag () | |
Destructor. More... | |
bool | match (const std::string &string, int begin) |
Attempt to match entire xml tag. More... | |
Public Member Functions inherited from Util::XmlBase | |
XmlBase () | |
Constructor. More... | |
~XmlBase () | |
Destructor. More... | |
void | setString (const std::string &string, int cursor=0) |
Initialize string and cursor. More... | |
void | setCursor (int cursor) |
Set cursor. More... | |
void | skip () |
Skip leading white space, if any. More... | |
void | next () |
Advance to the next character. More... | |
const std::string & | string () const |
Return the associated string. More... | |
int | cursor () const |
Return the index of the current character. More... | |
int | c () const |
Return the current character. More... | |
bool | isEnd () const |
Has the cursor reached the end of the string? More... | |
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().