Blender V5.3
recents.cc File Reference
#include "toml.hpp"
#include <atomic>
#include <condition_variable>
#include <map>
#include <optional>
#include <thread>
#include <vector>
#include "BKE_appdir.hh"
#include "BKE_blender_version.h"
#include "BKE_global.hh"
#include "BKE_recents.hh"
#include "BLI_fileops.hh"
#include "BLI_mutex.hh"
#include "BLI_path_utils.hh"
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::recents

Functions

static std::string blender::recents::recents_file_path (const bool create_folder=false)
static void blender::recents::recents_print_errors (const std::vector< toml::error_info > &errors)
static const toml::value & blender::recents::defaults_get ()
static toml::value & blender::recents::current_get ()
static void blender::recents::recents_init_impl ()
void blender::recents::init ()
void blender::recents::init_async ()
void blender::recents::ensure_init ()
bool blender::recents::save ()
static const toml::value * blender::recents::recents_find_in (const toml::value &root, const std::string &section_name, const std::string &item_key)
static void blender::recents::recents_format_inline_tables (toml::value &value)
template std::string blender::recents::Section::get< std::string > (const std::string &item_key) const
template void blender::recents::Section::set< std::string > (const std::string &item_key, const std::string &value)
template std::vector< int > blender::recents::Section::get< std::vector< int > > (const std::string &item_key) const
template void blender::recents::Section::set< std::vector< int > > (const std::string &item_key, const std::vector< int > &value)
template std::vector< double > blender::recents::Section::get< std::vector< double > > (const std::string &item_key) const
template void blender::recents::Section::set< std::vector< double > > (const std::string &item_key, const std::vector< double > &value)
template std::vector< float > blender::recents::Section::get< std::vector< float > > (const std::string &item_key) const
template void blender::recents::Section::set< std::vector< float > > (const std::string &item_key, const std::vector< float > &value)
template std::vector< std::map< std::string, std::string > > blender::recents::Section::get< std::vector< std::map< std::string, std::string > > > (const std::string &item_key) const
template void blender::recents::Section::set< std::vector< std::map< std::string, std::string > > > (const std::string &item_key, const std::vector< std::map< std::string, std::string > > &value)

Variables

constexpr toml::spec blender::recents::version = toml::spec::v(1, 0, 0)
static Mutex blender::recents::recents_mutex
static Mutex blender::recents::recents_init_mutex
static std::atomic< bool > blender::recents::recents_ready {false}
static std::condition_variable_any blender::recents::recents_init_cv
static std::once_flag blender::recents::recents_init_once

Detailed Description

Implementation of Section backed by TOML.

Definition in file recents.cc.