PSCF v1.1
Public Member Functions | List of all members
Util::XmlXmlTag Class Reference

Parser for an XML file declaration tag (first line in file). More...

#include <XmlXmlTag.h>

Inheritance diagram for Util::XmlXmlTag:
Util::XmlBase

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XmlXmlTag()

Util::XmlXmlTag::XmlXmlTag ( )

Constructor.

Definition at line 14 of file XmlXmlTag.cpp.

◆ ~XmlXmlTag()

Util::XmlXmlTag::~XmlXmlTag ( )

Destructor.

Definition at line 18 of file XmlXmlTag.cpp.

Member Function Documentation

◆ match()

bool Util::XmlXmlTag::match ( const std::string &  string,
int  begin 
)

Attempt to match entire xml tag.

Parameters
stringcontaining text of XML tag
beginindex of first character
Returns
true on match, false otherwise

Definition at line 21 of file XmlXmlTag.cpp.

References Util::XmlAttribute::label().


The documentation for this class was generated from the following files: