Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ptahmose committed Oct 23, 2023
1 parent 7dba4db commit 1e24186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions capi/capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ class FileProcessor final
open_options.ignore_sizem_for_pyramid_subblocks = true;
reader->Open(stream, &open_options);

// create (and configure) the "CZI-writer"-object
// create the stream-object representing the destination file
const std::string output_string(output_path);
const auto output_stream = libCZI::CreateOutputStreamForFile(utils::utf8::WidenUtf8(output_string).c_str(), false);

// create (and configure) the "CZI-writer"-object - it is configured to ignore "duplicate subblocks"
libCZI::CZIWriterOptions czi_writer_options;
czi_writer_options.allow_duplicate_subblocks = true;
const auto writer = libCZI::CreateCZIWriter();
const auto writer = libCZI::CreateCZIWriter(&czi_writer_options);

// GUID_NULL here means that a new Guid is created
const auto czi_writer_info = std::make_shared<libCZI::CCziWriterInfo>(libCZI::GUID{0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0}});
Expand Down
2 changes: 1 addition & 1 deletion lib/include/commandlineoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CommandLineOptions

/// Gets a boolean indicating whether the CZIWriter object should be configured to ignore duplicate subblocks.
///
/// \returns True if duplicate subblocks are to be ignore (with the CZIWriter object); false otherwise.
/// \returns True if duplicate subblocks are to be ignored (with the CZIWriter object); false otherwise.
bool GetIgnoreDuplicateSubblocks() const { return this->ignore_duplicate_subblocks_; }

private:
Expand Down

0 comments on commit 1e24186

Please sign in to comment.