aboutsummaryrefslogtreecommitdiff
path: root/common/file.h
AgeCommit message (Collapse)Author
2008-08-04Moved the OutSaveFile::finalize method to WriteStream; implemented ↵Max Horn
DumpFile::flush() svn-id: r33604
2008-08-03Implemented DumpFile::open(FSNode)Max Horn
svn-id: r33586
2008-07-29Changed class File (and derived classes) to only support read-only access; ↵Max Horn
added a new class DumpFile for writing svn-id: r33412
2008-05-27Made some methods virtual to allow File subclassesJordi Vilalta Prat
svn-id: r32311
2007-10-31Removed the Common::File::removeFile() methods, and moved their ↵David Corrales
implementation to the Common::DefaultSaveFileManager::removeSavefile() method, as per Marcus' appraisal and Max's approval. svn-id: r29337
2007-09-21Rename file removal functions, to avoid conflicts. Add save game path, when ↵Travis Howell
removing files via SaveFileManager. svn-id: r29001
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-09-18Patch #1768757: Merge fsnode-gsoc into trunk (MAJOR change, will break ↵Max Horn
compilation on some ports) svn-id: r28944
2007-08-18Merged some of the changes from the trunk patch back in to the GSoC fsnode ↵David Corrales
branch. svn-id: r28649
2007-08-05Merged fsnode with trunk: r27971:28460David Corrales
svn-id: r28462
2007-08-01Initial commit of the new BaseFile implementation. It provides a common ↵David Corrales
ground for file objects across platforms and divides responsibilities between the Common::File class and a base file implementation. Also rearranged the factories into a new directory for clarity. Note 1: The posix-file.h and cpp files are for testing only. Only the ds, ps2 and symbian architecture will use special BaseFile based objects. Note 2: The current code does not yet make use of this new structure, since the Common::File remains intact. svn-id: r28395
2007-07-20Added a remove() function to the Common::File class. Also changed the ↵David Corrales
exists() function to account for new capabilities in the FSNode layer. svn-id: r28150
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-03-08Changed File::_handle to be of type void* instead of FILE* (to ease ↵Max Horn
porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly) svn-id: r26017
2007-03-01Removed File::incRef and decRefMax Horn
svn-id: r25920
2007-02-25TypoMax Horn
svn-id: r25858
2006-07-24Documenting Common::File a bit.Johannes Schickel
svn-id: r23588
2006-05-20Make the copy constructor / assignment operator of class File private to ↵Max Horn
prevent accidental copying of File objects svn-id: r22549
2006-05-13Fix for bug #1483213Max Horn
svn-id: r22461
2006-05-01Add a variant of File::addDefaultDirectory(Recursive) which takes a ↵Max Horn
FilesystemNode instead of a string object svn-id: r22265
2006-04-30Add a File::open variant that takes a FilesystemNode as parameterMax Horn
svn-id: r22251
2006-04-26Removed 'directory' parameter of File::openMax Horn
svn-id: r22183
2006-04-26Properly re-implemented File::exists to FilesystemNode (this should fix bug ↵Max Horn
#1476651, at least partially) svn-id: r22169
2006-04-14Changed File::open to take a Common::String as file name parameterMax Horn
svn-id: r21867
2006-04-01Simplified the File::addDefaultDirectory(Recursive) code; avoid scanning ↵Max Horn
directory multiple times svn-id: r21527
2006-03-28- Renamed class AssocArray to HashMap to match our existing class Map (note alsoMax Horn
that many STL implementations have a class hash_map next to class map, too) - Changed some static File class member vars to be normal static variables, in yet another attempt to reduce header dependencies (in this case on hashmap.h) svn-id: r21473
2006-03-25- Revert my last change with moving addDefaultDirectory() from TheneNew.cppEugene Sandulenko
- Removed locking of further directory adds because it did not work for themes. svn-id: r21452
2006-03-25- Implemented case insensitive file reading. Left old system as a fallbackEugene Sandulenko
in case some engine writer decide to do something unwise - Removed used of ConfMan.getKey("path") in file-related cases, because now File class handles that - Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters weren't translated svn-id: r21443
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-05-10Moved class File and the MD5 stuff to namespace CommonMax Horn
svn-id: r18037
2005-05-06Fix another doyxgen warningMax Horn
svn-id: r17933
2005-05-05Turned File::exists into a static method (as it should have been from the ↵Max Horn
start, silly copy&paste mistake svn-id: r17915
2005-04-22* Added new virtual base class 'Stream', ReadStream andMax Horn
WriteStream are now subclasses of it. * Added new methods eos(), ioFailed(), clearIOFailed() to all streams. This allows better error checking. * SaveFile classes take advantage of these new standard stream APIS * Removed File::gets() * Added SeekableReadStream::readLine() (replaces File::gets) * Added WriteStream::writeString, for convenience svn-id: r17752
2005-01-09Added new interface SeekableReadStreamMax Horn
svn-id: r16493
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-11-27Make use of our String class instead of juggling with char pointers; added ↵Max Horn
File::exists method svn-id: r15913
2004-10-16Add gets() method to File class.Eugene Sandulenko
svn-id: r15572
2004-07-26Turn various File class methods into virtual methods, to allow overloadingMax Horn
svn-id: r14341
2004-07-23Allow subclasses to modify File class members (e.g. to set _ioFailed); ↵Max Horn
change some warnings into errors svn-id: r14302
2004-06-28Added simple ref-counting to the File classMax Horn
svn-id: r14106
2004-06-28Enhanced default directory support in the File class; now one can specify ↵Max Horn
arbitrary many default search directories svn-id: r14095
2004-06-27Reversed param order of File::open() -- this allowed me to get rid of a few ↵Max Horn
more getGameDataPath() calls svn-id: r14090
2004-04-17Removed XOR encoding stuff from File class; instead the new Scumm::XORFile ↵Max Horn
class provides this functionality now svn-id: r13597
2004-04-17Introduce ReadStream and WriteStream (as explained in my File class design ↵Max Horn
mails on scummvm-devel) svn-id: r13595
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-12-25be stricter about File::open paramsMax Horn
svn-id: r11919