Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::writers::HDF5Writer Class Reference

Manages the writing of distribution function data to HDF5 files. More...

#include <HDF5Writer.hpp>

Inheritance diagram for correlation::writers::HDF5Writer:
Collaboration diagram for correlation::writers::HDF5Writer:

Public Member Functions

 HDF5Writer ()=default
std::string getName () const override
 Returns the display name of the format (e.g., "HDF5", "CSV").
std::vector< std::string > getExtensions () const override
 Returns a list of supported file extensions (e.g., {".h5"}, {".csv"}).
void write (const std::string &base_path, const correlation::analysis::DistributionFunctions &dists, bool) const override
 Writes the distribution function data to file(s).
Public Member Functions inherited from correlation::writers::BaseWriter
 BaseWriter ()=default
virtual ~BaseWriter ()=default
 BaseWriter (const BaseWriter &)=delete
BaseWriter & operator= (const BaseWriter &)=delete
 BaseWriter (BaseWriter &&)=delete
BaseWriter & operator= (BaseWriter &&)=delete

Static Public Member Functions

static void writeHDF (const std::string &filename, const correlation::analysis::DistributionFunctions &dists)
 Writes all available histograms to a single HDF5 file.

Detailed Description

Manages the writing of distribution function data to HDF5 files.

This class takes a DistributionFunctions object and provides methods to write the calculated histograms to an HDF5 file.

Constructor & Destructor Documentation

◆ HDF5Writer()

correlation::writers::HDF5Writer::HDF5Writer ( )
default

Member Function Documentation

◆ getExtensions()

std::vector< std::string > correlation::writers::HDF5Writer::getExtensions ( ) const
inlineoverridevirtual

Returns a list of supported file extensions (e.g., {".h5"}, {".csv"}).

Returns
A vector of extension strings including the dot.

Implements correlation::writers::BaseWriter.

◆ getName()

std::string correlation::writers::HDF5Writer::getName ( ) const
inlineoverridevirtual

Returns the display name of the format (e.g., "HDF5", "CSV").

Returns
A human-readable name for the writer format.

Implements correlation::writers::BaseWriter.

◆ write()

void correlation::writers::HDF5Writer::write ( const std::string & base_path,
const correlation::analysis::DistributionFunctions & dists,
bool smoothing ) const
inlineoverridevirtual

Writes the distribution function data to file(s).

Parameters
base_pathThe base name for the output files.
distsThe DistributionFunctions object containing the data.
smoothingWhether to include smoothed data.

Implements correlation::writers::BaseWriter.

Here is the call graph for this function:

◆ writeHDF()

void correlation::writers::HDF5Writer::writeHDF ( const std::string & filename,
const correlation::analysis::DistributionFunctions & dists )
static

Writes all available histograms to a single HDF5 file.

Parameters
filenameThe full path of the HDF5 file to write.
distsThe DistributionFunctions object containing the data.
Here is the call graph for this function:
Here is the caller graph for this function:

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