From: Christian P. <cp...@us...> - 2004-12-30 17:07:11
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29275/include/pclasses/System Modified Files: File.h Log Message: Reordered ctor/open() args. Removed std::string ctor/open() method. Added default args for ctor and open(). Index: File.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/File.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- File.h 25 Dec 2004 16:04:21 -0000 1.4 +++ File.h 30 Dec 2004 17:06:59 -0000 1.5 @@ -42,30 +42,17 @@ /** Creates a file with the given name and access modes. Throws on error. */ - File(const Unicode::String& name, OpenMode omode, AccessMode amode, - ShareMode smode) throw(IO::IOError); - - /** - Creates a file with the given name and access modes. Throws on error. - */ - File(const std::string& name, OpenMode omode, AccessMode amode, - ShareMode smode) throw(IO::IOError); + File(const Unicode::String& name, AccessMode amode, + OpenMode omode = OpenCreate, + ShareMode smode = AllowNone) throw(IO::IOError); ~File() throw(); /** */ - void open(const Unicode::String& name, OpenMode omode, AccessMode amode, - ShareMode smode) throw(LogicError, IO::IOError); - - /** - Opens this file. - - @fixme: does this reopen using the new name if open() an already-open()ed - File? - */ - void open(const std::string& name, OpenMode omode, AccessMode amode, - ShareMode smode) throw(LogicError, IO::IOError); + void open(const Unicode::String& name, AccessMode amode, + OpenMode omode = OpenCreate, + ShareMode smode = AllowNone) throw(LogicError, IO::IOError); /** Frees any resources associated with this object, like filehandles. |