X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..0c2bed825d3b1efb56aab7f0dcddef17185184a5:/interface/wx/ffile.h?ds=sidebyside diff --git a/interface/wx/ffile.h b/interface/wx/ffile.h index a19619ff9a..869aed9a22 100644 --- a/interface/wx/ffile.h +++ b/interface/wx/ffile.h @@ -3,7 +3,7 @@ // Purpose: interface of wxFFile // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,6 @@ enum wxFileKind /** @class wxFFile - @wxheader{ffile.h} wxFFile implements buffered file I/O. @@ -91,7 +90,7 @@ public: The descriptor should be already opened and it will be closed by wxFFile object. */ - void Attach(FILE* fp); + void Attach(FILE* fp, const wxString& name = wxEmptyString); /** Closes the file and returns @true on success. @@ -107,7 +106,7 @@ public: void Detach(); /** - Returns @true if the an attempt has been made to read @e past + Returns @true if an attempt has been made to read @e past the end of the file. Note that the behaviour of the file descriptor based class wxFile is different as @@ -147,6 +146,15 @@ public: */ wxFileKind GetKind() const; + /** + Returns the file name. + + This is the name that was specified when the object was constructed or + to the last call to Open(). Notice that it may be empty if Attach() was + called without specifying the name. + */ + const wxString& GetName() const; + /** Returns @true if the file is opened.