lsxml::FileInputStream< _Ty > Class Template Reference

file input stream class More...

#include <lsxml.h>

Inheritance diagram for lsxml::FileInputStream< _Ty >:

lsxml::InputStream< _Ty > lsxml::FileStreamBase< _Base > lsxml::ManagedObject lsxml::ManagedObject lsxml::BaseObject lsxml::BaseObject lsxml::BaseObject lsxml::BaseObject List of all members.

Public Member Functions

 FileInputStream ()
 ctor
 FileInputStream (const _Ty *filename)
 ctor
bool Open (const _Ty *filename)
 opens the file
virtual _Ty GetChar ()
 reads the next character
 FileInputStream ()
 Constructor. Does nothing.
 FileInputStream (const _Ty *filename)
 Constructor. Opens the specified file.
bool Open (const _Ty *filename)
 Opens the specified file.
bool IsOpen () const
 Checks if the stream is open.
virtual _Ty GetChar ()
 reads the next character
virtual bool HasMore () const
 Checks if the reading has reached the end of file.

Detailed Description

template<typename _Ty>
class lsxml::FileInputStream< _Ty >

file input stream class

Handles streaming characters from a file


Constructor & Destructor Documentation

template<typename _Ty>
lsxml::FileInputStream< _Ty >::FileInputStream ( const _Ty *  filename  )  [inline]

Constructor. Opens the specified file.

Parameters:
filename name of the file to open


Member Function Documentation

template<typename _Ty>
bool lsxml::FileInputStream< _Ty >::Open ( const _Ty *  filename  )  [inline]

Opens the specified file.

Parameters:
filename name of the file to open
Returns:
true on success, false otherwise

template<typename _Ty>
bool lsxml::FileInputStream< _Ty >::IsOpen (  )  const [inline]

Checks if the stream is open.

Returns:
true if the stream has been successfuly opened, false otherwise

Reimplemented from lsxml::FileStreamBase< _Base >.


The documentation for this class was generated from the following files:
Generated on Tue Sep 29 14:51:12 2009 for lsxml by  doxygen 1.5.1-p1