https://mooseframework.inl.gov
RestartableDataWriter.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "RestartableDataIO.h"
13 
18 {
19 public:
21  RestartableDataWriter(MooseApp & app, std::vector<RestartableDataMap> & data);
22 
27  void write(std::ostream & header_stream, std::ostream & data_stream);
31  std::vector<std::filesystem::path> write(const std::filesystem::path & folder_base);
32 };
void write(std::ostream &header_stream, std::ostream &data_stream)
Writes the restartable data to header stream header_stream and data stream data_stream.
Class for doing restart.
Writer for restartable data, to be read by the RestartableDataReader.
Base class for MOOSE-based applications.
Definition: MooseApp.h:85
Storage for restartable data that is ordered based on insertion order.
RestartableDataWriter(MooseApp &app, RestartableDataMap &data)