|
| FileBase (std::function< void()> onModified, AcceptMode acceptMode, FileMode fileMode, std::string_view contentType) |
void | addNameFilter (std::string_view filter) |
void | addNameFilter (FileExtension ext) |
void | addNameFilters (const std::vector< FileExtension > &filters) |
void | clearNameFilters () |
const std::vector< FileExtension > & | getNameFilters () const |
std::vector< FileExtension > & | getNameFilters () |
bool | matchesAnyNameFilter (const std::filesystem::path &file) const |
void | setAcceptMode (AcceptMode mode) |
AcceptMode | getAcceptMode () const |
void | setFileMode (FileMode mode) |
FileMode | getFileMode () const |
void | setContentType (std::string_view contentType) |
const std::string & | getContentType () const |
const FileExtension & | getSelectedExtension () const |
void | setSelectedExtension (const FileExtension &ext) |
|
static constexpr std::string_view | defaultContentType = "default" |
|
bool | setFileBase (const FileBase &base) |
bool | updateExtension (const std::filesystem::path &file) |
void | setAsDefault () |
bool | reset () |
void | serialize (Serializer &s, PropertySerializationMode mode) const |
bool | deserialize (Deserializer &d, PropertySerializationMode mode) |
std::unique_ptr< FileDialog > | createFileDialog (std::string_view title, const std::filesystem::path &file) const |
|
template<typename Arg, typename... Args> |
static constexpr bool | any_of (Arg &&arg, Args &&... args) |
◆ any_of()
template<typename Arg, typename... Args>
constexpr bool inviwo::FileBase::any_of |
( |
Arg && | arg, |
|
|
Args &&... | args ) |
|
inlinestaticnodiscardconstexprprotected |
A variadic any_of. This will evaluate all the arguments. But the order is arbitrary.
The documentation for this class was generated from the following file: