Blender V5.3
path_templates.cc File Reference
#include <fmt/format.h>
#include "BLT_translation.hh"
#include "BLI_math_base.hh"
#include "BLI_path_utils.hh"
#include "BLI_span.hh"
#include "BKE_blender_project.hh"
#include "BKE_context.hh"
#include "BKE_idprop.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_path_templates.hh"
#include "BKE_scene.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "DNA_ID_enums.h"
#include "DNA_node_types.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::path_templates

Macros

#define FORMAT_BUFFER_SIZE   FILE_MAX

Functions

bool blender::bke::path_templates::operator== (const Error &left, const Error &right)
std::optional< bke::path_templates::VariableMap > blender::BKE_build_template_variables_for_prop (const bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void blender::BKE_add_template_variables_for_project (bke::path_templates::VariableMap &variables, const bke::BlenderProject &project)
void blender::BKE_add_template_variables_general (bke::path_templates::VariableMap &variables, const ID *path_owner_id, const bke::BlenderProject *project)
void blender::BKE_add_template_variables_for_render_path (bke::path_templates::VariableMap &variables, const Scene &scene)
void blender::BKE_add_template_variables_for_node (bke::path_templates::VariableMap &variables, const bNode &owning_node)
static int blender::format_int_to_string (const FormatSpecifier &format, const int64_t integer_value, char r_output_string[FORMAT_BUFFER_SIZE])
static int blender::format_float_to_string (const FormatSpecifier &format, const double float_value, char r_output_string[FORMAT_BUFFER_SIZE])
static FormatSpecifier blender::parse_format_specifier (StringRef format_specifier)
static std::optional< Token > blender::next_token (StringRef path, const int from_char)
std::optional< ExpressionInfo > blender::bke::path_templates::next_template_variable_expression (StringRef text, size_t starting_offset)
static Vector< Token > blender::parse_template (StringRef path)
static std::optional< Error > blender::token_to_syntax_error (const Token &token)
bool blender::BKE_path_contains_template_syntax (StringRef path)
std::string blender::BKE_path_template_escape (StringRef text)
static Vector< Error > blender::eval_template (std::string *r_out_path, StringRef in_path, const VariableMap &template_variables)
Vector< bke::path_templates::Error > blender::BKE_path_validate_template (StringRef path, const bke::path_templates::VariableMap &template_variables)
Vector< bke::path_templates::Error > blender::BKE_path_apply_template (char *path, int path_maxncpy, const bke::path_templates::VariableMap &template_variables)
Vector< bke::path_templates::Error > blender::BKE_path_apply_template_alloc (char **path, int path_maxncpy, const bke::path_templates::VariableMap &template_variables)
std::string blender::BKE_path_template_error_to_string (const bke::path_templates::Error &error, StringRef path)
void blender::BKE_report_path_template_errors (ReportList *reports, eReportType report_type, StringRef path, Span< bke::path_templates::Error > errors)
std::optional< std::string > blender::BKE_path_template_format_float (StringRef format_specifier, double value)
std::optional< std::string > blender::BKE_path_template_format_int (StringRef format_specifier, int64_t value)

Macro Definition Documentation

◆ FORMAT_BUFFER_SIZE