|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Magic database loading methods. More...

Functions | |
| void | Recognition::Magic::MagicPrivate::LoadDatabaseFile (const std::filesystem::path &database_file) |
| Load a magic database file (throwing version). | |
| bool | Recognition::Magic::MagicPrivate::LoadDatabaseFile (const std::nothrow_t &tag, const std::filesystem::path &database_file) noexcept |
| Load a magic database file (noexcept version). | |
Magic database loading methods.
Methods for loading magic database files to enable identification.
|
inline |
Load a magic database file (throwing version).
Loads the specified magic database file into this instance. On success, transitions from Opened to Valid state.
| [in] | database_file | Path to the magic database file. |
| MagicIsClosed | If instance is not open. |
| EmptyPath | If database_file is empty. |
| PathDoesNotExist | If database_file does not exist. |
| PathIsNotRegularFile | If database_file is not a regular file. |
| MagicLoadDatabaseFileError | If magic_load() fails. |
|
inlinenodiscardnoexcept |
Load a magic database file (noexcept version).
Non-throwing variant that returns success/failure status. On success, transitions from Opened to Valid state.
| [in] | tag | Pass std::nothrow to select this overload. |
| [in] | database_file | Path to the magic database file. |