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

Functions | |
| FlagsContainerT | Recognition::Magic::MagicPrivate::GetFlags () const |
| Get current flags (throwing version). | |
| std::optional< FlagsContainerT > | Recognition::Magic::MagicPrivate::GetFlags (const std::nothrow_t &tag) const noexcept |
| Get current flags (noexcept version). | |
Flag retrieval methods.
Methods for querying current configuration flags.
|
inlinenodiscard |
Get current flags (throwing version).
Retrieves the flags currently configured for this instance. Uses FlagsConverter to transform the internal bitmask to a container of individual Flags enum values.
| MagicIsClosed | If instance is not open. |
|
inlinenodiscardnoexcept |
Get current flags (noexcept version).
Non-throwing variant that returns std::nullopt if the instance is not open.
| [in] | tag | Pass std::nothrow to select this overload. |