Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions
Teuchos::XMLInputSource Class Reference

XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject. More...

#include <Teuchos_XMLInputSource.hpp>

Inheritance diagram for Teuchos::XMLInputSource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XMLInputSource ()
 Empty constructor.
virtual ~XMLInputSource ()
 Destructor.
virtual RCP< XMLInputStreamstream () const =0
 Virtual input source interface.
XMLObject getObject () const
 Get an object by invoking the TreeBuildingXMLHandler on the input data.

Detailed Description

XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.

Note:
  • The source might be a file, a socket, a std::string. The XMLObject is created with a call to the getObject() method.

  • The source gets its data from a XMLInputStream object that is created (internally) to work with this source.

  • getObject() is implemented with EXPAT if Teuchos is configured with --enable-expat.

Definition at line 71 of file Teuchos_XMLInputSource.hpp.


Constructor & Destructor Documentation

Teuchos::XMLInputSource::XMLInputSource ( ) [inline]

Empty constructor.

Definition at line 75 of file Teuchos_XMLInputSource.hpp.

virtual Teuchos::XMLInputSource::~XMLInputSource ( ) [inline, virtual]

Destructor.

Definition at line 78 of file Teuchos_XMLInputSource.hpp.


Member Function Documentation

virtual RCP<XMLInputStream> Teuchos::XMLInputSource::stream ( ) const [pure virtual]

Virtual input source interface.

Implemented in Teuchos::FileInputSource, and Teuchos::StringInputSource.

XMLObject XMLInputSource::getObject ( ) const

Get an object by invoking the TreeBuildingXMLHandler on the input data.

Definition at line 55 of file Teuchos_XMLInputSource.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines