Teuchos - Trilinos Tools Package Version of the Day
Public Member Functions | List of all members
Teuchos::FileInputStream Class Reference

Instantiation of XMLInputStream class for reading an entire document from a file. More...

#include <Teuchos_FileInputStream.hpp>

Inheritance diagram for Teuchos::FileInputStream:
Teuchos::XMLInputStream

Public Member Functions

 FileInputStream (const std::string &filename)
 Construct with a filename. More...
 
virtual ~FileInputStream ()
 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 readBytes (unsigned char *const toFill, const unsigned int maxToRead)=0
 Read up to maxToRead bytes from the stream. More...
 
virtual unsigned int curPos () const
 Identify current position. More...
 

Detailed Description

Instantiation of XMLInputStream class for reading an entire document from a file.

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

Definition at line 61 of file Teuchos_FileInputStream.hpp.

Constructor & Destructor Documentation

◆ FileInputStream()

FileInputStream::FileInputStream ( const std::string &  filename)

Construct with a filename.

Definition at line 47 of file Teuchos_FileInputStream.cpp.

◆ ~FileInputStream()

virtual Teuchos::FileInputStream::~FileInputStream ( )
inlinevirtual

Destructor.

Definition at line 68 of file Teuchos_FileInputStream.hpp.

Member Function Documentation

◆ readBytes()

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

Read up to maxToRead bytes.

Implements Teuchos::XMLInputStream.

Definition at line 56 of file Teuchos_FileInputStream.cpp.


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