![]() |
![]() |
00001 #ifndef CLASSLIB_INPUT_STREAM_H 00002 # define CLASSLIB_INPUT_STREAM_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "classlib/sysapi/system.h" 00007 # include "classlib/iobase/IOInput.h" 00008 00009 namespace lat { 00010 //<<<<<< PUBLIC DEFINES >>>>>> 00011 //<<<<<< PUBLIC CONSTANTS >>>>>> 00012 //<<<<<< PUBLIC TYPES >>>>>> 00013 //<<<<<< PUBLIC VARIABLES >>>>>> 00014 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00015 //<<<<<< CLASS DECLARATIONS >>>>>> 00016 00018 class InputStream : public virtual IOInput 00019 { 00020 public: 00021 virtual ~InputStream (void); 00022 00023 virtual IOSize available (void); 00024 virtual IOSize skip (IOSize n); 00025 virtual void close (void); 00026 virtual void reset (void); 00027 00028 protected: 00029 static const int SKIP_BUFFER_SIZE = 1024; //< Local buffer size for skip 00030 InputStream (void); 00031 00032 private: 00033 // undefined, no semantics 00034 InputStream (const InputStream &); 00035 InputStream &operator= (const InputStream &); 00036 }; 00037 00038 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00039 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00040 00041 } // namespace lat 00042 #endif // CLASSLIB_INPUT_STREAM_H