Grok 20.3.2
grk::TLMFile< T > Class Template Reference

#include <TLMFile.h>

Static Public Member Functions

static bool store (const std::vector< T > &data, const std::string &path)
static std::optional< std::vector< T > > load (const std::string &path)

Static Private Member Functions

static bool writeToFileWithLock (const fs::path &fullPath, const std::vector< T > &data)
static std::optional< std::vector< T > > readFromFileWithLock (const fs::path &fullPath)
static std::optional< time_t > getLastModified (const std::string &path)
static std::string getCacheDir ()
static std::string getTempDir ()
static std::string generateFilename (const std::string &path, time_t time)
static std::vector< std::string > getSearchPaths ()

Member Function Documentation

◆ generateFilename()

template<typename T>
std::string grk::TLMFile< T >::generateFilename ( const std::string & path,
time_t time )
inlinestaticprivate

Referenced by load(), and store().

◆ getCacheDir()

template<typename T>
std::string grk::TLMFile< T >::getCacheDir ( )
inlinestaticprivate

References getTempDir().

Referenced by getSearchPaths(), and store().

◆ getLastModified()

template<typename T>
std::optional< time_t > grk::TLMFile< T >::getLastModified ( const std::string & path)
inlinestaticprivate

Referenced by load(), and store().

◆ getSearchPaths()

template<typename T>
std::vector< std::string > grk::TLMFile< T >::getSearchPaths ( )
inlinestaticprivate

References getCacheDir(), and getTempDir().

Referenced by load(), and store().

◆ getTempDir()

template<typename T>
std::string grk::TLMFile< T >::getTempDir ( )
inlinestaticprivate

Referenced by getCacheDir(), getSearchPaths(), and store().

◆ load()

template<typename T>
std::optional< std::vector< T > > grk::TLMFile< T >::load ( const std::string & path)
inlinestatic

◆ readFromFileWithLock()

template<typename T>
std::optional< std::vector< T > > grk::TLMFile< T >::readFromFileWithLock ( const fs::path & fullPath)
inlinestaticprivate

Referenced by load().

◆ store()

template<typename T>
bool grk::TLMFile< T >::store ( const std::vector< T > & data,
const std::string & path )
inlinestatic

◆ writeToFileWithLock()

template<typename T>
bool grk::TLMFile< T >::writeToFileWithLock ( const fs::path & fullPath,
const std::vector< T > & data )
inlinestaticprivate

References grk::write().

Referenced by store().


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