|
Teuchos - Trilinos Tools Package
Version of the Day
|
46 #ifdef HAVE_TEUCHOS_EXPAT
48 # define EXPAT_BUFSIZE 8192
58 #ifdef HAVE_TEUCHOS_EXPAT
62 XML_Parser parser = XML_ParserCreate(NULL);
64 XML_SetElementHandler(parser, expatStartElementHandler,
65 expatEndElementHandler);
67 XML_SetCharacterDataHandler(parser, expatCharacterDataHandler);
69 XML_SetUserData(parser, (
void*) &(*handler));
74 unsigned int bufsize = EXPAT_BUFSIZE;
75 unsigned char buf[EXPAT_BUFSIZE];
79 unsigned int nRead = s->
readBytes(buf, bufsize);
84 XML_Parse(parser, (
char*) buf, bufsize, done);
93 return parser.
parse();
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Defines a class for assembling an XMLObject from XML input.
Smart reference counting pointer class for automatic garbage collection.
Expat adapter for the TreeBuildingXMLHandler.
TreeBuildingXMLHandler assembles a XMLObject from your XML input.
const XMLObject & getObject() const
Retrieve the entire XML tree.
XMLParser consumes characters from an XMLInputStream object, parsing the XML and using a TreeBuilding...
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
XMLObject parse()
Consume the XMLInputStream to build an XMLObject.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...