Blender V5.0
BKE_file_handler.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "BLI_span.hh"
10#include "BLI_string_ref.hh"
11#include "BLI_vector.hh"
12
14
15#include "RNA_types.hh"
16
17struct bContext;
18
19namespace blender::bke {
20
21#define FH_MAX_FILE_EXTENSIONS_STR 512
22
57
65void file_handler_add(std::unique_ptr<FileHandlerType> file_handler);
66
69
74void file_handler_remove(FileHandlerType *file_handler);
75
78
85 const bContext *C, const blender::Span<std::string> paths);
86
87} // namespace blender::bke
#define FH_MAX_FILE_EXTENSIONS_STR
#define OP_MAX_TYPENAME
#define C
Definition RandGen.cpp:29
FileHandlerType * file_handler_find(StringRef idname)
void file_handler_add(std::unique_ptr< FileHandlerType > file_handler)
blender::Vector< FileHandlerType * > file_handlers_poll_file_drop(const bContext *C, const blender::Span< std::string > paths)
void file_handler_remove(FileHandlerType *file_handler)
Span< std::unique_ptr< FileHandlerType > > file_handlers()
const char * name
std::string get_default_filename(StringRefNull name)
Vector< std::string > file_extensions
char file_extensions_str[FH_MAX_FILE_EXTENSIONS_STR]
char export_operator[OP_MAX_TYPENAME]
bool(* poll_drop)(const bContext *C, FileHandlerType *file_handle_type)
char import_operator[OP_MAX_TYPENAME]
blender::Vector< int64_t > filter_supported_paths(const blender::Span< std::string > paths) const