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

Base class for all file writers. More...

#include <BaseWriter.hpp>

Inheritance diagram for correlation::writers::BaseWriter:

Public Member Functions

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

Detailed Description

Base class for all file writers.

Constructor & Destructor Documentation

◆ BaseWriter() [1/3]

correlation::writers::BaseWriter::BaseWriter ( )
default
Here is the caller graph for this function:

◆ ~BaseWriter()

virtual correlation::writers::BaseWriter::~BaseWriter ( )
virtualdefault

◆ BaseWriter() [2/3]

correlation::writers::BaseWriter::BaseWriter ( const BaseWriter & )
delete
Here is the call graph for this function:

◆ BaseWriter() [3/3]

correlation::writers::BaseWriter::BaseWriter ( BaseWriter && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ getExtensions()

virtual std::vector< std::string > correlation::writers::BaseWriter::getExtensions ( ) const
pure virtual

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

Returns
A vector of extension strings including the dot.

Implemented in correlation::writers::ArrowWriter, correlation::writers::CSVWriter, and correlation::writers::HDF5Writer.

Here is the caller graph for this function:

◆ getName()

virtual std::string correlation::writers::BaseWriter::getName ( ) const
pure virtual

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

Returns
A human-readable name for the writer format.

Implemented in correlation::writers::ArrowWriter, correlation::writers::CSVWriter, and correlation::writers::HDF5Writer.

Here is the caller graph for this function:

◆ operator=() [1/2]

BaseWriter & correlation::writers::BaseWriter::operator= ( BaseWriter && )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

BaseWriter & correlation::writers::BaseWriter::operator= ( const BaseWriter & )
delete
Here is the call graph for this function:

◆ write()

virtual void correlation::writers::BaseWriter::write ( const std::string & base_path,
const correlation::analysis::DistributionFunctions & dists,
bool smoothing ) const
pure virtual

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.

Implemented in correlation::writers::ArrowWriter, correlation::writers::CSVWriter, and correlation::writers::HDF5Writer.

Here is the caller graph for this function:

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