Ticket #15093 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

Stream GetFile() accessor

Reported by: troelsk Owned by:
Priority: normal Milestone:
Component: base Version: 2.9-svn
Keywords: Cc:
Blocked By: Patch: yes
Blocking:

Description

This is useful if you need to do the actual reading or writing with code not using wxWidgets

    ::writer_fn(stream.GetFile()->fp());

The stream methods, OnSysRead OnSysWrite, maps directly to the underlying file object so making the file member public is safe.

Attachments

GetFile.patch download (2.3 KB) - added by troelsk 3 months ago.
GetFile()

Change History

Changed 3 months ago by troelsk

GetFile()

Changed 3 months ago by VZ

  • status changed from new to closed
  • resolution set to fixed

(In [73633]) Add GetFile() accessor to wxFileStream classes.

Allow to retrieve the underlying file used by the stream.

Closes #15093.

Note: See TracTickets for help on using tickets.