00001 /*************************************************************************** 00002 Revision Control Information 00003 $Revision: 1.1.1.1 $ 00004 $Log: FileInputStream.cpp,v $ 00005 Revision 1.1.1.1 2001/10/26 00:22:57 mroman 00006 First import of Gaia 00007 00008 ***************************************************************************/ 00009 00010 #include "OSDependent/Support/FileInputStream.h" 00011 00012 FileInputStream::FileInputStream(const char *fileName) : 00013 { 00014 _file.open(fileName, "r+b"); 00015 } 00016 00017 FileInputStream::~FileInputStream() 00018 { 00019 _file.close(); 00020 } 00021 00022 bool 00023 FileInputStream::operator!() 00024 { 00025 return !_file; 00026 } 00027 00028 int 00029 FileInputStream::read(void *buf, int len) 00030 { 00031 return _file.read(buf, len); 00032 } 00033 00034
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001