![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| void | deserialize (Deserializer &d) |
| bool | empty () const |
| bool | matches (const std::filesystem::path &path) const |
| checks whether the given string is matched by this FileExtension Extensions are matched case insensitive while an empty FileExtension, i.e. '*', will match all strings. | |
| bool | matchesAll () const |
| returns true, if the current extension matches all files, i.e. it is equal to '*'. Note: the description can be different from all(). | |
| std::strong_ordering | operator<=> (const FileExtension &) const noexcept |
| bool | operator== (const FileExtension &) const noexcept=default |
| void | serialize (Serializer &s) const |
| std::string | toString () const |
Static Public Member Functions | |
| static FileExtension | all () |
| static FileExtension | createFileExtensionFromString (std::string_view str) |
| extracts a FileExtension object from a string. This function assumes that the extension is given within the right most parentheses. | |
Public Attributes | |
| std::string | description |
| LCString | extension |
| File extension in lower case letters. | |
|
static |
extracts a FileExtension object from a string. This function assumes that the extension is given within the right most parentheses.
| str | Input string formed like "Text files (*.txt)". |
| bool inviwo::FileExtension::matches | ( | const std::filesystem::path & | path | ) | const |
checks whether the given string is matched by this FileExtension Extensions are matched case insensitive while an empty FileExtension, i.e. '*', will match all strings.
| path | path to be tested |
| bool inviwo::FileExtension::matchesAll | ( | ) | const |
returns true, if the current extension matches all files, i.e. it is equal to '*'. Note: the description can be different from all().