Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Teuchos::TreeBuildingXMLHandler Class Reference

TreeBuildingXMLHandler assembles a XMLObject from your XML input. More...

#include <Teuchos_TreeBuildingXMLHandler.hpp>

Public Member Functions

 TreeBuildingXMLHandler ()
 Empty constructor. More...
const XMLObjectgetObject () const
 Retrieve the entire XML tree. More...
void characters (const std::string &chars)
 Process character data. More...
int endElement (const std::string &tag)
 Receive notification of the end of an element. More...
void startElement (const std::string &tag, const Map &attributes)
 Receive notification of the start of an element. More...

Private Types

typedef Teuchos::map
< std::string, std::string > 

Private Attributes

XMLObject root_
XMLObject current_
std::stack< XMLObjectpath_

Detailed Description

TreeBuildingXMLHandler assembles a XMLObject from your XML input.

Definition at line 61 of file Teuchos_TreeBuildingXMLHandler.hpp.

Member Typedef Documentation

typedef Teuchos::map<std::string, std::string> Teuchos::TreeBuildingXMLHandler::Map

Definition at line 63 of file Teuchos_TreeBuildingXMLHandler.hpp.

Constructor & Destructor Documentation

TreeBuildingXMLHandler::TreeBuildingXMLHandler ( )

Empty constructor.

Definition at line 48 of file Teuchos_TreeBuildingXMLHandler.cpp.

Member Function Documentation

const XMLObject& Teuchos::TreeBuildingXMLHandler::getObject ( ) const

Retrieve the entire XML tree.

Definition at line 69 of file Teuchos_TreeBuildingXMLHandler.hpp.

void TreeBuildingXMLHandler::characters ( const std::string &  chars)

Process character data.

Definition at line 54 of file Teuchos_TreeBuildingXMLHandler.cpp.

int TreeBuildingXMLHandler::endElement ( const std::string &  tag)

Receive notification of the end of an element.

Definition at line 100 of file Teuchos_TreeBuildingXMLHandler.cpp.

void TreeBuildingXMLHandler::startElement ( const std::string &  tag,
const Map attributes 

Receive notification of the start of an element.

Definition at line 77 of file Teuchos_TreeBuildingXMLHandler.cpp.

Member Data Documentation

XMLObject Teuchos::TreeBuildingXMLHandler::root_

Definition at line 91 of file Teuchos_TreeBuildingXMLHandler.hpp.

XMLObject Teuchos::TreeBuildingXMLHandler::current_

Definition at line 92 of file Teuchos_TreeBuildingXMLHandler.hpp.

std::stack<XMLObject> Teuchos::TreeBuildingXMLHandler::path_

Definition at line 93 of file Teuchos_TreeBuildingXMLHandler.hpp.

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