SPH
Public Member Functions | List of all members
TextInput Class Reference

Input for the text file, generated by TextOutput or conforming to the same format. More...

#include <Output.h>

Inheritance diagram for TextInput:
IInput Polymorphic

Public Member Functions

 TextInput (Flags< OutputQuantityFlag > quantities)
 
TextInputaddColumn (AutoPtr< ITextColumn > &&column)
 
virtual Outcome load (const Path &path, Storage &storage, Statistics &stats) override
 Loads data from the file into the storage. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Input for the text file, generated by TextOutput or conforming to the same format.

Note that this loader cannot be used to resume a simulation (at least not directly), as the text file does not contains all the necessary data.

Definition at line 202 of file Output.h.

Constructor & Destructor Documentation

◆ TextInput()

TextInput::TextInput ( Flags< OutputQuantityFlag quantities)
explicit

Definition at line 256 of file Output.cpp.

Member Function Documentation

◆ addColumn()

TextInput & TextInput::addColumn ( AutoPtr< ITextColumn > &&  column)

Definition at line 330 of file Output.cpp.

◆ load()

Outcome TextInput::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.

Todo:
de-duplicate the loading (used in Settings)

Implements IInput.

Definition at line 260 of file Output.cpp.


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