#15093 closed enhancement (fixed)

Stream GetFile() accessor

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

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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 21 months ago by troelsk

GetFile()

comment:1 Changed 21 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(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.