LibCT 2.0
|
00001 // ------------------------------------------------------------------ 00012 #ifndef _LIBCT_FILEINPUTSTREAM_H 00013 #define _LIBCT_FILEINPUTSTREAM_H 00014 00015 #include "InputStream.h" 00016 00017 #include <fstream> 00018 00019 namespace LibCT 00020 { 00022 class FileInputStream : public InputStream 00023 { 00024 public: 00026 FileInputStream( 00027 const char* pPath 00028 ); 00029 00031 ~FileInputStream(); 00032 00033 protected: 00036 virtual size_t Read( 00037 void* pData, 00038 size_t size 00039 ); 00040 00041 private: 00042 std::ifstream m_Stream; 00043 }; 00044 } 00045 00046 #endif // _LIBCT_FILEINPUTSTREAM_H