Skip to content
Snippets Groups Projects
  1. May 10, 2023
  2. May 05, 2023
  3. Apr 07, 2023
  4. Apr 06, 2023
  5. Feb 16, 2023
  6. Aug 18, 2022
  7. Jun 02, 2022
  8. May 30, 2022
  9. May 19, 2022
  10. May 16, 2022
  11. Nov 11, 2021
  12. Nov 09, 2021
  13. Jun 28, 2021
  14. Mar 15, 2021
  15. Feb 15, 2021
  16. Dec 17, 2020
  17. Dec 10, 2020
  18. Dec 02, 2020
    • Matthias's avatar
      Added Read&Write-classes for output data formats; redirected the relevant calls to these classes. · b04481b6
      Matthias authored
      About the reader/writer classes:
      Each class contains methods for reading and writing (if applicable) of one format (INT, NumpyTXT, Reflecometry, Tiff). The code for reading and writing is copied from the OutputDataReadStrategy-implementations and from  the OutputDataWriteStrategy-implementations.
      For TIFF, the code was already in a separate class (TiffHandler). This has been renamed and reworked a bit (only interface-wise, no implementation changes). Methods from the Tiff strategy have been integrated as well.
      
      The classes have no common polymorphy (no common base class/interface) since it is not necessary in the given implementation. This reduces code & dependencies and eliminates tricks or dummies for non-existing implementations like Reflecometry::write.
      
      Also in the one and only class which uses the readers/writers(IntensityDataIOFactory), polymorphy would not help since there is only one if-else, which would be necessary also in a polymorhic approach.
      
      However, the Reader/Writer classes are designed quite alike, so in case the future brings needs for polymorphy, this can be easily added.
      
      IntensityDataIOFactory:
      Code from OutputReader and OutputWriter has been integrated into IntensityDataIOFactory
      b04481b6
Loading