10#ifndef Teuchos_TREEBUILDINGXMLHANDLER_H
11#define Teuchos_TREEBUILDINGXMLHANDLER_H
31 typedef Teuchos::map<std::string, std::string> Map;
42 ,
"Error, An empty XML std::string or file was specified!"
43 " The XML specification requires at minimum the presence"
44 " of a root element!" );
45 return root_.getChild(0);
56 const Map& attributes);
61 std::stack<XMLObject> path_;
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
An object representation of a subset of XML data.
Thrown when attempting to parse an empty XML std::string.
void characters(const std::string &chars)
Process character data.
void startElement(const std::string &tag, const Map &attributes)
Receive notification of the start of an element.
const XMLObject & getObject() const
Retrieve the entire XML tree.
TreeBuildingXMLHandler()
Empty constructor.
int endElement(const std::string &tag)
Receive notification of the end of an element.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...