Steve Checkoway
9bca01da8e
If there is nothing to copy, return. This fixes an assert in stl since m_pFile->m_sBuf[m_iFilePos] is not dereferencable if m_iFilePos is the size of the file.
2008-07-21 10:34:43 +00:00
Glenn Maynard
7a95f5da5b
covariant Copy()
2006-10-20 00:01:18 +00:00
Chris Danford
1fcfc22981
CString -> RString
...
const string params where possible for easier debug stepping
2005-12-28 03:59:52 +00:00
Chris Danford
ec51af900e
CString -> RString for files used by smpackage
2005-12-10 08:15:44 +00:00
Glenn Maynard
7c7c547131
missing headers
2005-09-03 21:26:04 +00:00
Glenn Maynard
35de6e65ae
RageFileObjMem::PutString
2005-01-08 21:50:50 +00:00
Glenn Maynard
ae92b86b34
RageFileBasic
2004-12-11 02:25:38 +00:00
Glenn Maynard
47994102b3
vc fix?
2004-12-10 13:13:14 +00:00
Glenn Maynard
8915e3944a
simplify; use RageBasicFile instead of RageFileObj
2004-12-10 10:04:32 +00:00
Glenn Maynard
57c218dd6e
add copy ctor, GetString
2004-12-10 09:27:11 +00:00
Glenn Maynard
2607397fde
move RageFileObjMem definition into header
2004-12-10 09:13:03 +00:00
Glenn Maynard
46ce532f18
simplify reference handling
2004-12-10 09:10:14 +00:00
Glenn Maynard
bcba89a2c9
cleanup
2004-12-10 08:53:52 +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
ec22ffec62
stop passing ugly back-references to the RageFile to RageFileObj
2004-12-09 11:47:20 +00:00
Glenn Maynard
6761eb7a51
remove Rewind()
2004-12-09 10:44:07 +00:00
Glenn Maynard
b1465d4868
fix linux compile
2004-09-06 06:25:03 +00:00
Glenn Maynard
aad5140304
add RageFileDriverMemory; this is just a very simple memory "filesystem"
...
for caching stuff. (Not yet used, just committing for testing ...)
2004-09-06 06:22:09 +00:00