// Purpose: interface of wxFFile
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
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.
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
*/
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.