Commit Graph

18 Commits

Author SHA1 Message Date
Glenn Maynard ae92b86b34 RageFileBasic 2004-12-11 02:25:38 +00:00
Glenn Maynard 287a150db7 Move buffering logic from RageFile into RageFileObj.
Common file interface class, RageBasicFile, shared by RageFile
and RageFileObj.  This makes most uses of these objects interchangeable.
RageFile is now just a simple wrapper for RageFileObj, to create
files in FILEMAN's namespace; file objects can also be created
independently.  This means that, for example, IniFile can be used
to write a file to a CString, without having to jump through hoops,
and without having to use a separate file access wrapper; just do
something like:

RageFileObjMem string_file;
ini.WriteFile( string );
const CString &sString = string_file.GetString();
2004-12-10 08:48:18 +00:00
Glenn Maynard e2ea72dbac internalize RageFileObj implementation functions 2004-12-10 03:14:01 +00:00
Glenn Maynard a2f9bf586d propagate file driver errors normally 2004-12-09 11:17:57 +00:00
Glenn Maynard b2c7aec818 Remove ugly, brute-force Seek and GetFileSize implementations. Nothing uses them, and nothing ever should. 2004-12-09 11:10:27 +00:00
Glenn Maynard 335e8149d0 remove RageFileObj::SeekCur 2004-12-09 08:51:28 +00:00
Glenn Maynard beab9555e2 no they don't 2004-06-06 20:22:56 +00:00
Glenn Maynard 0593be0b41 fs root paths always end with a slash 2004-06-06 19:21:50 +00:00
Glenn Maynard 33a04b79de beginning GPL->X11 license transition
The conventions I'm using are to put the entire copyright notice at the bottom
of each file, and to put the summary of the source file's use at the top of the
header.

Putting the license text in each file avoids confusion, and is normal practice
for many projects.  Putting it at the bottom gets it out of the way; it's a
ton of clutter to put at the top.

The description is in the header.  People who don't know what a class is for,
or how to use it, are probably looking at the header to see the interface,
not the implementation, so let's put the description in there.  Keep it brief
(one line); any substantial implementation notes should go in the source file.
2004-05-06 00:42:06 +00:00
Glenn Maynard 1b69bfdff9 allow VFS drivers to register themselves 2004-02-10 23:39:45 +00:00
Glenn Maynard 15dc3fb189 cleanup 2004-01-16 22:33:01 +00:00
Glenn Maynard e9ae2c0803 continue phasing out BASE_PATH and SLASH 2003-12-10 09:44:16 +00:00
Glenn Maynard cdb4dbc03b replace GetFileModTime with GetFileHash 2003-12-10 07:07:42 +00:00
Glenn Maynard d5281f11eb bigger seek buffer 2003-12-10 05:01:22 +00:00
Glenn Maynard b5b947fe28 cleanup 2003-12-08 00:05:55 +00:00
Glenn Maynard 96a7ebe210 cleanup 2003-12-07 22:22:27 +00:00
Glenn Maynard ac004ea51a driver GetDirListing, write logic, fixes 2003-12-05 02:25:32 +00:00
Glenn Maynard ea0ba6fcb9 VFS work 2003-12-04 08:25:59 +00:00