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 Attributes | List of all members
Teuchos::StringInputStream Class Reference

Instantiation of XMLInputStream for reading an entire document from a std::string. More...

#include <Teuchos_StringInputStream.hpp>

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

Public Member Functions

 StringInputStream (const std::string &text)
 Construct with the std::string from which data will be read. More...
 
virtual ~StringInputStream ()
 Destructor. More...
 
virtual unsigned int readBytes (unsigned char *const toFill, const unsigned int maxToRead)
 Read up to maxToRead bytes. More...
 
- Public Member Functions inherited from Teuchos::XMLInputStream
 XMLInputStream ()
 Constructor. More...
 
virtual ~XMLInputStream ()
 Destructor. More...
 
virtual unsigned int curPos () const
 Identify current position. More...
 

Private Attributes

std::string text_
 
unsigned int pos_
 

Detailed Description

Instantiation of XMLInputStream for reading an entire document from a std::string.

This is a low-level object and should not be needed at the user level. FileInputSource is the user-level object.

Definition at line 32 of file Teuchos_StringInputStream.hpp.

Constructor & Destructor Documentation

Teuchos::StringInputStream::StringInputStream ( const std::string &  text)
inline

Construct with the std::string from which data will be read.

Definition at line 37 of file Teuchos_StringInputStream.hpp.

virtual Teuchos::StringInputStream::~StringInputStream ( )
inlinevirtual

Destructor.

Definition at line 41 of file Teuchos_StringInputStream.hpp.

Member Function Documentation

unsigned int StringInputStream::readBytes ( unsigned char *const  toFill,
const unsigned int  maxToRead 
)
virtual

Read up to maxToRead bytes.

Implements Teuchos::XMLInputStream.

Definition at line 15 of file Teuchos_StringInputStream.cpp.

Member Data Documentation

std::string Teuchos::StringInputStream::text_
private

Definition at line 48 of file Teuchos_StringInputStream.hpp.

unsigned int Teuchos::StringInputStream::pos_
private

Definition at line 49 of file Teuchos_StringInputStream.hpp.


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