Blender V5.3
BKE_bpath.hh File Reference
#include <cstddef>
#include "BLI_enum_flags.hh"
#include "BLI_function_ref.hh"
#include "BLI_string_ref.hh"

Go to the source code of this file.

Classes

struct  blender::BPathForeachPathData
struct  blender::BPathSummary

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Helpers to handle common cases from <tt>IDTypeInfo</tt>'s <tt>foreach_path</tt> functions.
bool blender::BKE_bpath_foreach_path_fixed_process (BPathForeachPathData *bpath_data, char *path, size_t path_maxncpy)
void blender::BKE_bpath_foreach_path_readonly_process (BPathForeachPathData *bpath_data, const char *path)
void blender::BKE_bpath_sequence_filepaths_foreach (const char *abs_filepath, blender::FunctionRef< void(blender::StringRef frame_filepath)> callback)
bool blender::BKE_bpath_foreach_path_dirfile_fixed_process (BPathForeachPathData *bpath_data, char *path_dir, size_t path_dir_maxncpy, char *path_file, size_t path_file_maxncpy)
bool blender::BKE_bpath_foreach_path_allocated_process (BPathForeachPathData *bpath_data, char **path)
High level features.
void blender::BKE_bpath_missing_files_check (Main *bmain, ReportList *reports)
void blender::BKE_bpath_summary_report (const BPathSummary &summary, ReportList *reports)
void blender::BKE_bpath_missing_files_find (Main *bmain, const char *searchpath, ReportList *reports, bool find_all, BPathSummary *r_summary=nullptr)
void blender::BKE_bpath_relative_rebase (Main *bmain, const char *basedir_src, const char *basedir_dst, ReportList *reports, BPathSummary *r_summary=nullptr)
void blender::BKE_bpath_relative_convert (Main *bmain, const char *basedir, ReportList *reports, BPathSummary *r_summary=nullptr)
void blender::BKE_bpath_absolute_convert (Main *bmain, const char *basedir, ReportList *reports, BPathSummary *r_summary=nullptr)
void * blender::BKE_bpath_list_backup (Main *bmain, eBPathForeachFlag flag)
void blender::BKE_bpath_list_restore (Main *bmain, eBPathForeachFlag flag, void *path_list_handle)
void blender::BKE_bpath_list_free (void *path_list_handle)

Core <tt>foreach_path</tt> API.

enum  blender::eBPathForeachFlag {
  blender::BKE_BPATH_FOREACH_PATH_ABSOLUTE = (1 << 0) , blender::BKE_BPATH_FOREACH_PATH_SKIP_LINKED = (1 << 1) , blender::BKE_BPATH_FOREACH_PATH_SKIP_PACKED = (1 << 2) , blender::BKE_BPATH_FOREACH_PATH_RESOLVE_TOKEN = (1 << 3) ,
  blender::BKE_BPATH_TRAVERSE_SKIP_WEAK_REFERENCES = (1 << 5) , blender::BKE_BPATH_FOREACH_PATH_SKIP_MULTIFILE = (1 << 8) , blender::BKE_BPATH_FOREACH_PATH_RELOAD_EDITED = (1 << 9) , blender::BKE_BPATH_FOREACH_PATH_EXPAND_TOKENS = (1 << 10) ,
  blender::BKE_BPATH_FOREACH_PATH_EXPAND_SEQUENCES = (1 << 11) , blender::BKE_BPATH_FOREACH_PATH_EXPAND_CACHES = (1 << 12)
}
using blender::BPathForeachPathFunctionCallback
void blender::BKE_bpath_foreach_path_id (BPathForeachPathData *bpath_data, ID *id)
void blender::BKE_bpath_foreach_path_main (BPathForeachPathData *bpath_data)

Detailed Description

Warning
All paths manipulated by this API are assumed to be either constant char buffers of FILE_MAX size, or allocated char buffers not bigger than FILE_MAX.

Definition in file BKE_bpath.hh.