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

#include <Output.h>

Inheritance diagram for CompressedOutput:
IOutput Polymorphic

Public Member Functions

 CompressedOutput (const OutputFile &fileMask, const CompressionEnum compression, const RunTypeEnum runTypeId=RunTypeEnum::SPH)
 
virtual Expected< Pathdump (const Storage &storage, const Statistics &stats) override
 Saves data from particle storage into the file. More...
 
- Public Member Functions inherited from IOutput
 IOutput (const OutputFile &fileMask)
 Constructs output given the file name of the output. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Additional Inherited Members

- Protected Attributes inherited from IOutput
OutputFile paths
 

Detailed Description

Definition at line 417 of file Output.h.

Constructor & Destructor Documentation

◆ CompressedOutput()

CompressedOutput::CompressedOutput ( const OutputFile fileMask,
const CompressionEnum  compression,
const RunTypeEnum  runTypeId = RunTypeEnum::SPH 
)
explicit

Definition at line 846 of file Output.cpp.

Member Function Documentation

◆ dump()

Expected< Path > CompressedOutput::dump ( const Storage storage,
const Statistics stats 
)
overridevirtual

Saves data from particle storage into the file.

Returns the filename of the dump, generated from file mask given in constructor, or an error message in case writing the output file failed.

Todo:
runType as string

Implements IOutput.

Definition at line 933 of file Output.cpp.


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