Blender V5.3
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
17namespace blender {
18
19struct bContext;
20
21namespace bke {
22
23#define FH_MAX_FILE_EXTENSIONS_STR 512
24
70
78void file_handler_add(std::unique_ptr<FileHandlerType> file_handler);
79
82
87void file_handler_remove(FileHandlerType *file_handler);
88
91
98 const Span<std::string> paths);
99
100} // namespace bke
101} // namespace blender
#define FH_MAX_FILE_EXTENSIONS_STR
#define OP_MAX_TYPENAME
#define C
Definition RandGen.cpp:29
Vector< FileHandlerType * > file_handlers_poll_file_drop(const bContext *C, const Span< std::string > paths)
FileHandlerType * file_handler_find(StringRef idname)
void file_handler_add(std::unique_ptr< FileHandlerType > file_handler)
void file_handler_remove(FileHandlerType *file_handler)
Span< std::unique_ptr< FileHandlerType > > file_handlers()
BMesh Iterators.
std::string get_default_filename(StringRefNull name)
Vector< std::string > file_extensions
char file_extensions_str[FH_MAX_FILE_EXTENSIONS_STR]
Vector< int64_t > filter_supported_paths(const Span< std::string > paths) const
std::string label_with_extensions() const
char export_operator[OP_MAX_TYPENAME]
char import_operator[OP_MAX_TYPENAME]
std::optional< std::string > filter_glob_from_extensions() const
bool(*) poll_drop(const bContext *C, FileHandlerType *file_handle_type)