@@ -2233,25 +2233,33 @@ namespace detail
22332233#if openPMD_HAVE_MPI
22342234
22352235ADIOS2IOHandler::ADIOS2IOHandler (
2236+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
22362237 std::string path,
22372238 openPMD::Access at,
22382239 MPI_Comm comm,
22392240 json::TracingJSON options,
22402241 std::string engineType,
22412242 std::string specifiedExtension)
2242- : AbstractIOHandler(std::move(path), at, std::move(options), comm)
2243+ : AbstractIOHandler(
2244+ std::move (initialize_from),
2245+ std::move(path),
2246+ at,
2247+ std::move(options),
2248+ comm)
22432249 , m_impl{this , comm, std::move (engineType), std::move (specifiedExtension)}
22442250{}
22452251
22462252#endif
22472253
22482254ADIOS2IOHandler::ADIOS2IOHandler (
2255+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
22492256 std::string path,
22502257 Access at,
22512258 json::TracingJSON options,
22522259 std::string engineType,
22532260 std::string specifiedExtension)
2254- : AbstractIOHandler(std::move(path), at, std::move(options))
2261+ : AbstractIOHandler(
2262+ std::move (initialize_from), std::move(path), at, std::move(options))
22552263 , m_impl{this , std::move (engineType), std::move (specifiedExtension)}
22562264{}
22572265
@@ -2265,6 +2273,7 @@ ADIOS2IOHandler::flush(internal::ParsedFlushParams &flushParams)
22652273
22662274#if openPMD_HAVE_MPI
22672275ADIOS2IOHandler::ADIOS2IOHandler (
2276+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
22682277 std::string path,
22692278 Access at,
22702279 MPI_Comm comm,
@@ -2273,20 +2282,27 @@ ADIOS2IOHandler::ADIOS2IOHandler(
22732282 std::string,
22742283 // NOLINTNEXTLINE(performance-unnecessary-value-param)
22752284 std::string)
2276- : AbstractIOHandler(std::move(path), at, std::move(config), comm)
2285+ : AbstractIOHandler(
2286+ std::move (initialize_from),
2287+ std::move(path),
2288+ at,
2289+ std::move(config),
2290+ comm)
22772291{}
22782292
22792293#endif // openPMD_HAVE_MPI
22802294
22812295ADIOS2IOHandler::ADIOS2IOHandler (
2296+ std::optional<std::unique_ptr<AbstractIOHandler>> initialize_from,
22822297 std::string path,
22832298 Access at,
22842299 json::TracingJSON config,
22852300 // NOLINTNEXTLINE(performance-unnecessary-value-param)
22862301 std::string,
22872302 // NOLINTNEXTLINE(performance-unnecessary-value-param)
22882303 std::string)
2289- : AbstractIOHandler(std::move(path), at, std::move(config))
2304+ : AbstractIOHandler(
2305+ std::move (initialize_from), std::move(path), at, std::move(config))
22902306{}
22912307
22922308std::future<void > ADIOS2IOHandler::flush (internal::ParsedFlushParams &)
0 commit comments