42#ifndef TEUCHOS_XMLPARSER_H
43#define TEUCHOS_XMLPARSER_H
86#pragma warning(disable:4251)
96 inline static bool isLetter(
unsigned char c);
98 inline static bool isNameChar(
unsigned char c);
100 inline static bool isChar(
unsigned char c);
102 inline static bool isSpace(
unsigned char c);
110 void getETag(std::string &tag);
128 void getSTag(
unsigned char lookahead, std::string &tag, Teuchos::map<std::string,string> &attrs,
bool &emptytag);
142 int getSpace(
unsigned char &lookahead);
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
An object representation of a subset of XML data.
Smart reference counting pointer class for automatic garbage collection.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
static bool isLetter(unsigned char c)
Determine whether c matches the Letter production according to the XML specification.
void getReference(std::string &refstr)
Consumes a Reference production according to the XML specification.
static bool isSpace(unsigned char c)
Determine whether c matches the Space production according to the XML specification.
int getSpace(unsigned char &lookahead)
Consumes a Space (block of whitepace) production according to the XML specification.
static bool isNameChar(unsigned char c)
Determine whether c matches the NameChar production according to the XML specification.
void ignoreXMLDeclaration()
Ignore the rest of an XML declaration tag.
XMLParser(RCP< XMLInputStream > is)
Constructor.
void getSTag(unsigned char lookahead, std::string &tag, Teuchos::map< std::string, string > &attrs, bool &emptytag)
Consume a STag production according to the XML specification. getSTag throws an std::exception if the...
RCP< XMLInputStream > _is
int assertChar(unsigned char cexp)
Determines if the next character on the stream.
void getETag(std::string &tag)
Consume a ETag production according to the XML specification. getETag throws an std::exception if the...
static bool isChar(unsigned char c)
Determine whether c matches the Char production according to the XML specification.
void getComment(long startLine)
Consume a Comment production according to the XML specification. getComment throws an std::exception ...
Teuchos::map< std::string, string > _entities