From 4399724858fcc8576384bcc21253af1e8b66a701 Mon Sep 17 00:00:00 2001 From: robbietuk Date: Thu, 12 Sep 2024 12:43:28 -0700 Subject: [PATCH] Remove openmode and add release notes. --- documentation/release_6.3.htm | 5 +++++ src/buildblock/ProjDataInMemory.cxx | 4 ++-- src/include/stir/ProjDataInMemory.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/documentation/release_6.3.htm b/documentation/release_6.3.htm index 43342331f..54a9c63bc 100644 --- a/documentation/release_6.3.htm +++ b/documentation/release_6.3.htm @@ -48,6 +48,11 @@

Known problems

What is new for developers (aside from what should be obvious from the above):

+

New functionality

+ +
  • + ProjDataInMemory read_from_file method now returns a ProjDataInMemory object. +
  • Changed functionality

    diff --git a/src/buildblock/ProjDataInMemory.cxx b/src/buildblock/ProjDataInMemory.cxx index 5c8c50203..420c801df 100644 --- a/src/buildblock/ProjDataInMemory.cxx +++ b/src/buildblock/ProjDataInMemory.cxx @@ -351,9 +351,9 @@ ProjDataInMemory::ProjDataInMemory(const ProjDataInMemory& proj_data) } shared_ptr -ProjDataInMemory::read_from_file(const std::string& filename, const std::ios::openmode openmode) +ProjDataInMemory::read_from_file(const std::string& filename) { - return std::make_shared(*ProjData::read_from_file(filename, openmode)); + return std::make_shared(*ProjData::read_from_file(filename)); } float diff --git a/src/include/stir/ProjDataInMemory.h b/src/include/stir/ProjDataInMemory.h index c63a58620..b101819b2 100644 --- a/src/include/stir/ProjDataInMemory.h +++ b/src/include/stir/ProjDataInMemory.h @@ -63,7 +63,7 @@ class ProjDataInMemory : public ProjData ProjDataInMemory(const ProjDataInMemory& proj_data); //! A static member to get the projection data in memory from a file - static shared_ptr read_from_file(const std::string& filename, std::ios::openmode open_mode = std::ios::in); + static shared_ptr read_from_file(const std::string& filename); Viewgram get_viewgram(const int view_num, const int segment_num,