GNU Radio C++ API Reference  ga83fa36
The Free & Open Software Radio Ecosystem
gr::paths Namespace Reference

Functions

GR_RUNTIME_API std::filesystem::path tmp ()
 directory to create temporary files. More...
 
GR_RUNTIME_API std::filesystem::path appdata ()
 directory that stores user data; typicall $HOME More...
 
GR_RUNTIME_API std::filesystem::path userconf ()
 directory that stores configuration. More...
 
GR_RUNTIME_API std::filesystem::path cache ()
 directory to store non-portable caches (e.g. FFTW wisdom) More...
 
GR_RUNTIME_API std::filesystem::path persistent ()
 directory to store persistent application state (e.g. window layouts, generated GRC hier blocks) More...
 

Function Documentation

◆ appdata()

GR_RUNTIME_API std::filesystem::path gr::paths::appdata ( )

directory that stores user data; typicall $HOME

◆ cache()

GR_RUNTIME_API std::filesystem::path gr::paths::cache ( )

directory to store non-portable caches (e.g. FFTW wisdom)

Defaults to $XDG_CACHE_HOME, falls back to appdata()/cache

◆ persistent()

GR_RUNTIME_API std::filesystem::path gr::paths::persistent ( )

directory to store persistent application state (e.g. window layouts, generated GRC hier blocks)

◆ tmp()

GR_RUNTIME_API std::filesystem::path gr::paths::tmp ( )

directory to create temporary files.

On UNIX-oid systems, typically /tmp.

Referenced by gr::analog::kernel::agc2_ff::scale(), and gr::analog::kernel::agc2_cc::scale().

◆ userconf()

GR_RUNTIME_API std::filesystem::path gr::paths::userconf ( )

directory that stores configuration.

Defaults to $XDG_CONFIG_HOME/gnuradio (fallback: appdata()/.config/gnuradio), but if that doesn't exist, checks the legacy path, appdata()/.gnuradio