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 | List of all members
Teuchos::XMLInputSource Class Referenceabstract

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]

Public Member Functions

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

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 ( )
inlinevirtual

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::StringInputSource, and Teuchos::FileInputSource.

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: