aboutsummaryrefslogtreecommitdiff
path: root/common/file.h
AgeCommit message (Collapse)Author
2016-08-04COMMON: Add WriteStream::pos()Alexander Tkachev
It returns int32, because some complex streams are derived from both WriteStream and ReadStream, and in ReadStream pos() returns int32, because -1 means an error. I had to change MemoryStream's uint32 to int32, which is probably not so good.
2014-08-29COMMON: Fix some Doxygen comments that seem wrong.Einar Johan Trøan Sømåen
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2011-08-07COMMON: Remove superfluous Common:: qualifiers.Christoph Mallon
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-02-09Remove last traces of File::addDefaultDirectoryMax Horn
svn-id: r48027
2009-09-23Got rid of Common::File::addDefaultDirectory, instead implemented the ↵Johannes Schickel
solution proposed in "Case agnostic handling for directories (and files)" on -devel. svn-id: r44266
2009-07-29Removed redundant File::ioFailed() implementation; also turned ↵Max Horn
ReadStream::ioFailed from a virtual into an inline method svn-id: r42911
2009-07-29Removed last traces of clearIOFailed. Yay :)Max Horn
svn-id: r42910
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-11-18Fixed documentation.Johannes Schickel
svn-id: r35109
2008-10-23Pushed down some header depsMax Horn
svn-id: r34845
2008-10-22Removed File::addDefaultDirectoryRecursive, tweaked SearchMan API slightlyMax Horn
svn-id: r34836
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-30Added multiple new open() methods to Common::File, which make it possible to ↵Max Horn
use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName() svn-id: r34696
2008-09-14Big patch changing semantics of ReadStream::eos():Willem Jan Palenstijn
eos() now only returns true _after_ trying to read past the end of the stream. This has a large potential for regressions. Please test! svn-id: r34549
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-08Switched File::open, File::addDefaultDirectory to use a SearchSet ↵Max Horn
internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody svn-id: r34444
2008-09-06Got rid of File::eof()Max Horn
svn-id: r34396
2008-09-06Switched class File & DumpFile to use StdioStream internallyMax Horn
svn-id: r34391
2008-09-03Moved StdioStream to its own files inside backendsMax Horn
svn-id: r34303
2008-09-03Moved FilesystemNode / FSList to namespace Common; also got rid of some ↵Max Horn
'typedef Common::String String;' name aliases svn-id: r34302
2008-09-03Added new StdioStream class, a thin wrapper around FILEMax Horn
svn-id: r34300
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