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

Extension of text output that runs given gnuplot script on dumped text data. More...

#include <Output.h>

Inheritance diagram for GnuplotOutput:
TextOutput IOutput Polymorphic

Public Member Functions

 GnuplotOutput (const OutputFile &fileMask, const std::string &runName, const std::string &scriptPath, const Flags< OutputQuantityFlag > quantities, const Flags< Options > flags)
 
virtual Expected< Pathdump (const Storage &storage, const Statistics &stats) override
 Saves data from particle storage into the file. More...
 
- Public Member Functions inherited from TextOutput
 TextOutput (const OutputFile &fileMask, const std::string &runName, Flags< OutputQuantityFlag > quantities, Flags< Options > options=EMPTY_FLAGS)
 Creates a new text file output. More...
 
 ~TextOutput ()
 
TextOutputaddColumn (AutoPtr< ITextColumn > &&column)
 Adds a new column to be saved 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

- Public Types inherited from TextOutput
enum class  Options { DUMP_ALL = 1 << 0 , SCIENTIFIC = 1 << 1 }
 
- Protected Attributes inherited from IOutput
OutputFile paths
 

Detailed Description

Extension of text output that runs given gnuplot script on dumped text data.

Definition at line 215 of file Output.h.

Constructor & Destructor Documentation

◆ GnuplotOutput()

GnuplotOutput::GnuplotOutput ( const OutputFile fileMask,
const std::string &  runName,
const std::string &  scriptPath,
const Flags< OutputQuantityFlag quantities,
const Flags< Options flags 
)
inline

Definition at line 220 of file Output.h.

Member Function Documentation

◆ dump()

Expected< Path > GnuplotOutput::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.

Reimplemented from TextOutput.

Definition at line 339 of file Output.cpp.


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