SPH
Classes | Public Member Functions | List of all members
BinaryInput Class Reference

Input for the binary file, generated by BinaryOutput. More...

#include <Output.h>

Inheritance diagram for BinaryInput:
IInput Polymorphic

Classes

struct  Info
 

Public Member Functions

virtual Outcome load (const Path &path, Storage &storage, Statistics &stats) override
 Loads data from the file into the storage. More...
 
Expected< InfogetInfo (const Path &path) const
 Opens the file and reads header info without reading the rest of the file. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Input for the binary file, generated by BinaryOutput.

Storage loaded by this class can be used to continue a simulation.

Definition at line 352 of file Output.h.

Member Function Documentation

◆ getInfo()

Expected< BinaryInput::Info > BinaryInput::getInfo ( const Path path) const

Opens the file and reads header info without reading the rest of the file.

Definition at line 814 of file Output.cpp.

◆ load()

Outcome BinaryInput::load ( const Path path,
Storage storage,
Statistics stats 
)
overridevirtual

Loads data from the file into the storage.

This will remove any data previously stored in storage. Function can also load additional run statistics, such as time of the snapshot, and save it to provided stats value.

Implements IInput.

Definition at line 718 of file Output.cpp.


The documentation for this class was generated from the following files: