Differences From Artifact [f1d0a00de8]:
- File src/OFFile.h — part of check-in [6072f61f83] at 2008-10-07 21:25:10 on branch trunk — OFFile improvements. (user: js, size: 802) [annotate] [blame] [check-ins using]
To Artifact [fb39a1e440]:
- File
src/OFFile.h
— part of check-in
[b597d49f43]
at
2008-10-08 23:15:26
on branch trunk
— Multiple changes, see details.
* OFObject getMem: renamd to getMemWithSize:.
* OFString compare: renamed to compareTo:.
* Exceptions don't throw itself anymore.
* Exceptions include an error string now.
* Exceptions now got raise and string.
* New methods for OFFile:
* changeModeOfFile:toMode:
* changeOwnerOfFile:toOwner:andGroup:
* delete:
* link:to:
* symlink:to:
* OFFile isEndOfFile renamd to atEndOfFile
* OFNotImplementedExeception newWithObject:andMethod renamed to
newWithObject:andSelector:.
* Tests updated accordingly.
* TODO list added. (user: js, size: 1116) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 | @interface OFFile: OFObject { FILE *fp; } + newWithPath: (const char*)path andMode: (const char*)mode; - initWithPath: (const char*)path andMode: (const char*)mode; - free; | > > > > > > > > > > > | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | @interface OFFile: OFObject { FILE *fp; } + newWithPath: (const char*)path andMode: (const char*)mode; + (int)changeModeOfFile: (const char*)path toMode: (mode_t)mode; + (int)changeOwnerOfFile: (const char*)path toOwner: (uid_t)owner andGroup: (gid_t)group; + (int)delete: (const char*)path; + (int)link: (const char*)src to: (const char*)dest; + (int)symlink: (const char*)src to: (const char*)dest; - initWithPath: (const char*)path andMode: (const char*)mode; - free; - (BOOL)atEndOfFile; - (size_t)readIntoBuffer: (char*)buf withSize: (size_t)size andNItems: (size_t)nItems; - (char*)readWithSize: (size_t)size andNItems: (size_t)nitems; - (size_t)writeBuffer: (char*)buf withSize: (size_t)size andNItems: (size_t)nitems; @end |