Teuchos - Trilinos Tools Package  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:
Teuchos::FileInputSource Teuchos::StringInputSource

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 39 of file Teuchos_XMLInputSource.hpp.

Constructor & Destructor Documentation

Teuchos::XMLInputSource::XMLInputSource ( )
inline

Empty constructor.

Definition at line 43 of file Teuchos_XMLInputSource.hpp.

virtual Teuchos::XMLInputSource::~XMLInputSource ( )
inlinevirtual

Destructor.

Definition at line 46 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 23 of file Teuchos_XMLInputSource.cpp.


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