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
function getAppendMode
function getCurredName
template<typename T>
inline std::string TempLat::FilesManager::getCurredName (
const Field < T, NDim > & fld,
bool withDir,
std::string nametag="average_"
)
function getFlushFreq
function getHDF5Fn
function getHDF5SpectraFn
function getHDF5UnbinnedSpectraFn
function getNInfreqMeas
function getNMeas
function getOverwriteMode
function getPrintHeaders
function getSimpleName
template<typename T>
inline std::string TempLat::FilesManager::getSimpleName (
const Field < T, NDim > & fld
)
function getTag
function getToolBox
function getUseHDF5
function getUseHDF5Spectra
function getWorkingDir
function prepareOutputFile
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/cosmolattice/include/CosmoInterface/measurements/measurementsIO/filesmanager.h