|
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::LoadDatabaseFile (const std::filesystem::path &database_file=DEFAULT_DATABASE_FILE) |
| Load a magic database file. | |
| bool | Recognition::Magic::LoadDatabaseFile (const std::nothrow_t &tag, const std::filesystem::path &database_file=DEFAULT_DATABASE_FILE) noexcept |
| Load a magic database file (noexcept version). | |
Magic database loading methods.
Methods for loading magic database files to enable identification.
| void Recognition::Magic::LoadDatabaseFile | ( | const std::filesystem::path & | database_file = DEFAULT_DATABASE_FILE | ) |
Load a magic database file.
Loads the specified magic database file into the Magic instance. Must be called after Open() before file identification can be performed.
| [in] | database_file | Path to the database file (default: DEFAULT_DATABASE_FILE). |
| MagicIsClosed | If the Magic instance is closed. |
| EmptyPath | If database_file path is empty. |
| PathDoesNotExist | If database_file does not exist. |
| PathIsNotRegularFile | If database_file is not a regular file. |
| MagicLoadDatabaseFileError | If loading fails. |
|
nodiscardnoexcept |
Load a magic database file (noexcept version).
| [in] | tag | Pass std::nothrow to select this overload. |
| [in] | database_file | Path to the database file (default: DEFAULT_DATABASE_FILE). |