|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Instance state inspection methods. More...

Functions | |
| bool | Recognition::Magic::MagicPrivate::IsDatabaseLoaded () const noexcept |
| Check if a database is loaded. | |
| bool | Recognition::Magic::MagicPrivate::IsOpen () const noexcept |
| Check if instance is open. | |
| bool | Recognition::Magic::MagicPrivate::IsValid () const noexcept |
| Check if instance is valid for file identification. | |
Instance state inspection methods.
Methods for querying the current lifecycle state.
|
inlinenodiscardnoexcept |
Check if a database is loaded.
Returns the state of the m_is_database_loaded flag, which is set to true only after a successful LoadDatabaseFile() call.
|
inlinenodiscardnoexcept |
Check if instance is open.
Returns whether the libmagic cookie has been allocated. A non-null cookie indicates the instance is at least in the Opened state.
|
inlinenodiscardnoexcept |
Check if instance is valid for file identification.
An instance is Valid when both conditions are met: