Skip to content

Class TempLat::FilesManager

template <size_t NDim>

ClassList > TempLat > FilesManager

Interface to switch between hdf5 and std output for measurements. This class hides the polymorphism under the hood. More...

  • #include <filesmanager.h>

Public Functions

Type Name
FilesManager (ParameterParser & parser, std::string fn, device::memory::host_ptr< MemoryToolBox< NDim > > toolbox, bool pUseHDF5, bool pUseHDF5Spectra, bool pPrintHeaders, bool pAppendMode, bool pOverwriteMode, std::string pTag="", ptrdiff_t pFlushFreq=1, ptrdiff_t pNMeas=0, ptrdiff_t pNMeasInfreq=0, bool isUnbinned=false)
void flush ()
bool getAppendMode () const
std::string getCurredName (const Field< T, NDim > & fld, bool withDir, std::string nametag="average_")
auto getFlushFreq () const
std::string getHDF5Fn () const
std::string getHDF5SpectraFn () const
std::string getHDF5UnbinnedSpectraFn () const
auto getNInfreqMeas () const
auto getNMeas () const
bool getOverwriteMode () const
bool getPrintHeaders () const
std::string getSimpleName (const Field< T, NDim > & fld)
std::string getTag () const
auto getToolBox () const
bool getUseHDF5 () const
bool getUseHDF5Spectra () const
std::string getWorkingDir () const
bool prepareOutputFile (const std::string & fn) const

Detailed Description

Unit test: ctest -R test-filesmanager

Public Functions Documentation

function FilesManager

inline TempLat::FilesManager::FilesManager (
    ParameterParser & parser,
    std::string fn,
    device::memory::host_ptr < MemoryToolBox < NDim > > toolbox,
    bool pUseHDF5,
    bool pUseHDF5Spectra,
    bool pPrintHeaders,
    bool pAppendMode,
    bool pOverwriteMode,
    std::string pTag="",
    ptrdiff_t pFlushFreq=1,
    ptrdiff_t pNMeas=0,
    ptrdiff_t pNMeasInfreq=0,
    bool isUnbinned=false
) 

function flush

inline void TempLat::FilesManager::flush () 

function getAppendMode

inline bool TempLat::FilesManager::getAppendMode () const

function getCurredName

template<typename T>
inline std::string TempLat::FilesManager::getCurredName (
    const Field < T, NDim > & fld,
    bool withDir,
    std::string nametag="average_"
) 

function getFlushFreq

inline auto TempLat::FilesManager::getFlushFreq () const

function getHDF5Fn

inline std::string TempLat::FilesManager::getHDF5Fn () const

function getHDF5SpectraFn

inline std::string TempLat::FilesManager::getHDF5SpectraFn () const

function getHDF5UnbinnedSpectraFn

inline std::string TempLat::FilesManager::getHDF5UnbinnedSpectraFn () const

function getNInfreqMeas

inline auto TempLat::FilesManager::getNInfreqMeas () const

function getNMeas

inline auto TempLat::FilesManager::getNMeas () const

function getOverwriteMode

inline bool TempLat::FilesManager::getOverwriteMode () const

function getPrintHeaders

inline bool TempLat::FilesManager::getPrintHeaders () const

function getSimpleName

template<typename T>
inline std::string TempLat::FilesManager::getSimpleName (
    const Field < T, NDim > & fld
) 

function getTag

inline std::string TempLat::FilesManager::getTag () const

function getToolBox

inline auto TempLat::FilesManager::getToolBox () const

function getUseHDF5

inline bool TempLat::FilesManager::getUseHDF5 () const

function getUseHDF5Spectra

inline bool TempLat::FilesManager::getUseHDF5Spectra () const

function getWorkingDir

inline std::string TempLat::FilesManager::getWorkingDir () const

function prepareOutputFile

inline bool TempLat::FilesManager::prepareOutputFile (
    const std::string & fn
) const


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/cosmolattice/include/CosmoInterface/measurements/measurementsIO/filesmanager.h