Blender V4.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
5#include "BLI_span.hh"
6#include "BLI_string_ref.hh"
7#include "BLI_vector.hh"
8
10
11#include "RNA_types.hh"
12
13struct bContext;
14
15namespace blender::bke {
16
17#define FH_MAX_FILE_EXTENSIONS_STR 512
18
51
59void file_handler_add(std::unique_ptr<FileHandlerType> file_handler);
60
63
68void file_handler_remove(FileHandlerType *file_handler);
69
72
79 const bContext *C, const blender::Span<std::string> paths);
80
81} // 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()
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)
std::string get_default_filename(const StringRefNull name)
char import_operator[OP_MAX_TYPENAME]
blender::Vector< int64_t > filter_supported_paths(const blender::Span< std::string > paths) const