Ticket #1480 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

BinaryFile.h : templated helper functions for loading simple binary files

Reported by: Janik Zikovsky Owned by: Janik Zikovsky
Priority: major Milestone: Iteration 24
Component: Keywords:
Cc: pf9@… Blocked By:
Blocking: Tester: Stuart Campbell

Description

  • Templated class
  • Lives in MantidKernel
  • Represent any binary file with a simple sequence of structs of type T
  • Do the whole reintepret_cast business for you.

Change History

comment:1 Changed 10 years ago by Janik Zikovsky

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Janik Zikovsky

(In [5678]) Refs #1480: added a BinaryFile template class to make loading simple binary files easier with more code reuse.

comment:3 Changed 10 years ago by Janik Zikovsky

(In [5679]) Refs #1480: fixed an accidental paste that will prevent building.

comment:4 Changed 10 years ago by Janik Zikovsky

(In [5680]) Refs #1480: Simplified LoadEventPreNexus to use BinaryFile functionality; fixed a test under windows; commented out a test that fails for reasons unknown...

comment:5 Changed 10 years ago by Janik Zikovsky

(In [5682]) Refs #1480: needed data file for a test

comment:6 Changed 10 years ago by Janik Zikovsky

(In [5687]) Refs #1480: a missing numpixel setting caused LoadEventPreNexus to fail in non-obvious ways.

comment:7 Changed 10 years ago by Janik Zikovsky

(In [5695]) Refs #1480: a few more comments.

comment:8 Changed 10 years ago by Janik Zikovsky

  • Status changed from accepted to verify

comment:9 Changed 10 years ago by Nick Draper

  • Resolution set to fixed

fill in missing resolution

comment:10 Changed 10 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:11 Changed 10 years ago by Stuart Campbell

  • Status changed from verifying to closed

Looks ok to me.

(Making use of it in LoadPreNeXusMonitors algorithm)

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2327

Note: See TracTickets for help on using tickets.