Glenn Maynard
7a95f5da5b
covariant Copy()
2006-10-20 00:01:18 +00:00
Glenn Maynard
6fc982d681
private SetError; this isn't a class to derive from
...
cleanup
2006-02-15 00:42:04 +00:00
Chris Danford
bd0087ae04
CString -> RString
2005-12-28 19:17:34 +00:00
Glenn Maynard
b3d9debc44
remove unused (and too broad) IsGood
2005-05-20 00:18:52 +00:00
Glenn Maynard
41682c11e3
add FileReading::ReadString
2005-05-18 06:38:25 +00:00
Glenn Maynard
0e8b4b8371
comments, cleanup
2005-02-13 03:21:22 +00:00
Glenn Maynard
c4087d1cf9
missed commit
2004-12-14 22:41:36 +00:00
Glenn Maynard
b03207d6f5
automatic crc32 calc; a couple extra helpers
2004-12-12 04:38:17 +00:00
Glenn Maynard
ae92b86b34
RageFileBasic
2004-12-11 02:25:38 +00:00
Glenn Maynard
8915e3944a
simplify; use RageBasicFile instead of RageFileObj
2004-12-10 10:04:32 +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
7ae0ad1533
remove RageFile::Rewind
2004-12-09 10:22:47 +00:00
Glenn Maynard
fd7e23fce8
remove SeekCur
2004-12-09 08:47:24 +00:00
Glenn Maynard
b6eba6ac8d
start eliminating exception use; gcc apparently bloats exceptions to
...
a degree that makes them not worth it
2004-11-30 08:12:08 +00:00
Glenn Maynard
5ec58080d9
move exception-based reading into RageFile; this is for concise, error-checked binary file reading
2004-10-05 22:53:21 +00:00
Glenn Maynard
2e6ffb73e0
remove construct-and-open RageFile ctor
2004-09-25 02:50:31 +00:00
Glenn Maynard
e804c28451
smaller buffer
2004-07-24 03:01:23 +00:00
Glenn Maynard
31ce6c9a0d
buffer everything, not just GetLine
2004-06-23 01:53:30 +00:00
Glenn Maynard
6d22c84cce
increase RageFile buffer size
2004-06-21 21:19:58 +00:00
Glenn Maynard
cd060ef6d6
remove overload that doesn't allow error checking--makes it too easy to be lazy
2004-06-06 21:06:03 +00:00
Chris Danford
b13b4fa221
fix RageFileSink error handling
2004-06-06 08:34:58 +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
f790653b0f
don't fsync by default; it's too slow
2004-02-20 06:01:12 +00:00
Glenn Maynard
4af86cda13
RageFile::GetFileSize() const
2004-02-17 21:42:06 +00:00
Glenn Maynard
efc1ce7a5d
CString foo;
...
file.Read( foo );
to read the entire file
2003-12-21 09:17:39 +00:00
Glenn Maynard
20792a51bb
Write files in such a way that a program crash, system crash, powerdown,
...
etc. won't cause data loss if we're running on a journalling filesystem.
2003-12-21 07:23:29 +00:00
Glenn Maynard
2a64220e50
cleanup
2003-12-21 02:20:53 +00:00
Glenn Maynard
63bb61388a
add RageFile::Flush
2003-12-12 07:47:38 +00:00
Glenn Maynard
29ac07278e
add RageFile copy ctor
...
fix RageFile::Rewind
implement RageFile(CString&)
2003-12-10 05:04:37 +00:00
Glenn Maynard
ba7c4e57fe
add helpers
2003-12-04 21:10:16 +00:00
Glenn Maynard
ea0ba6fcb9
VFS work
2003-12-04 08:25:59 +00:00
Glenn Maynard
24fd4d243c
SEEK_SET only
2003-12-04 04:34:45 +00:00
Glenn Maynard
d5bc752e9d
add RageFile::PutLine
2003-12-04 04:26:49 +00:00
Glenn Maynard
51b65b039b
RageFile::READ, RageFile::WRITE
2003-12-03 23:50:53 +00:00
Glenn Maynard
ac7d46e81d
remove GetFilePointer
2003-12-03 20:37:10 +00:00
Steve Checkoway
b125e3d980
Fix RageFile, use RageFile. Const fix in LyricsLoader.
2003-11-30 06:20:25 +00:00
Steve Checkoway
2da10fc9eb
um, oops. Check if it's open, not closed.
2003-11-30 03:45:04 +00:00
Chris Danford
f7e136940a
fix VC6 compile error
2003-11-29 11:17:30 +00:00
Steve Checkoway
b716ee6680
RageFile class
2003-11-27 07:46:36 +00:00
Chris Danford
35950c4eaf
Add prefs for logging. Don't throw if can't open log file. Remove Ragefopen and Rageifstream (they aren't needed).
2003-08-13 04:40:23 +00:00
Glenn Maynard
4007c2987b
quiet warning
2003-07-22 20:20:12 +00:00
Chris Danford
278cb4c3f1
runs on Xbox
2003-07-22 07:47:27 +00:00