00001 #ifndef CLASSLIB_STD_INPUT_STREAM_H 00002 # define CLASSLIB_STD_INPUT_STREAM_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "classlib/iotools/InputStream.h" 00007 # include <iostream> 00008 00009 namespace lat { 00010 //<<<<<< PUBLIC DEFINES >>>>>> 00011 //<<<<<< PUBLIC CONSTANTS >>>>>> 00012 //<<<<<< PUBLIC TYPES >>>>>> 00013 //<<<<<< PUBLIC VARIABLES >>>>>> 00014 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00015 //<<<<<< CLASS DECLARATIONS >>>>>> 00016 00017 class StdInputStream : public InputStream 00018 { 00019 public: 00020 StdInputStream (std::istream *input); 00021 ~StdInputStream (void); 00022 00023 using InputStream::read; 00024 virtual IOSize read (void *into, IOSize n); 00025 virtual void close (void); 00026 00027 protected: 00028 std::istream *m_input; //< Actual input. 00029 }; 00030 00031 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00032 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00033 00034 } // namespace lat 00035 #endif // CLASSLIB_STD_INPUT_STREAM_H