|
template<std::derived_from< magic_exception > ExceptionType, typename ResultType , typename ... ExceptionArgs>
requires std::same_as<ResultType, int> || std::same_as<ResultType, bool> |
void | throw_exception_on_failure (ResultType result, ExceptionArgs &&...args) const |
| Throws an ExceptionType exception with ExceptionArgs if the result is false or equal to libmagic_error.
|
|
std::string | get_error_message () const noexcept |
|
◆ cookie_t
Initial value: std::unique_ptr<detail::magic_set, decltype(
[](detail::magic_t cookie) noexcept {
detail::magic_close(cookie);
}
)>
◆ libmagic_pair_t
◆ libmagic_value_name_t
◆ libmagic_value_t
◆ magic_private() [1/5]
recognition::magic::magic_private::magic_private |
( |
| ) |
|
|
defaultnoexcept |
◆ magic_private() [2/5]
recognition::magic::magic_private::magic_private |
( |
flags_mask_t | flags_mask, |
|
|
const std::filesystem::path & | database_file ) |
|
inline |
◆ magic_private() [3/5]
recognition::magic::magic_private::magic_private |
( |
const flags_container_t & | flags_container, |
|
|
const std::filesystem::path & | database_file ) |
|
inline |
◆ magic_private() [4/5]
recognition::magic::magic_private::magic_private |
( |
magic_private && | | ) |
|
|
defaultnoexcept |
◆ magic_private() [5/5]
recognition::magic::magic_private::magic_private |
( |
const magic_private & | | ) |
|
|
delete |
◆ ~magic_private()
recognition::magic::magic_private::~magic_private |
( |
| ) |
|
|
default |
◆ check()
bool recognition::magic::magic_private::check |
( |
const std::filesystem::path & | database_file | ) |
const |
|
inlinenoexcept |
◆ close()
void recognition::magic::magic_private::close |
( |
| ) |
|
|
inlinenoexcept |
◆ compile()
bool recognition::magic::magic_private::compile |
( |
const std::filesystem::path & | database_file | ) |
const |
|
inlinenoexcept |
◆ get_error_message()
std::string recognition::magic::magic_private::get_error_message |
( |
| ) |
const |
|
inlineprivatenoexcept |
◆ get_flags()
◆ get_parameter()
std::size_t recognition::magic::magic_private::get_parameter |
( |
parameters | parameter | ) |
const |
|
inline |
◆ get_parameters()
◆ identify_file() [1/2]
file_type_t recognition::magic::magic_private::identify_file |
( |
const std::filesystem::path & | path | ) |
const |
|
inline |
◆ identify_file() [2/2]
expected_file_type_t recognition::magic::magic_private::identify_file |
( |
const std::filesystem::path & | path, |
|
|
std::nothrow_t | ) const |
|
inlinenoexcept |
◆ is_open()
bool recognition::magic::magic_private::is_open |
( |
| ) |
const |
|
inlinenoexcept |
◆ load_database_file()
void recognition::magic::magic_private::load_database_file |
( |
const std::filesystem::path & | database_file | ) |
|
|
inline |
◆ open() [1/2]
void recognition::magic::magic_private::open |
( |
const flags_container_t & | flags_container | ) |
|
|
inline |
◆ open() [2/2]
void recognition::magic::magic_private::open |
( |
flags_mask_t | flags_mask | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_flags() [1/2]
void recognition::magic::magic_private::set_flags |
( |
const flags_container_t & | flags_container | ) |
|
|
inline |
◆ set_flags() [2/2]
void recognition::magic::magic_private::set_flags |
( |
flags_mask_t | flags_mask | ) |
|
|
inline |
◆ set_parameter()
void recognition::magic::magic_private::set_parameter |
( |
parameters | parameter, |
|
|
std::size_t | value ) |
|
inline |
◆ set_parameters()
◆ throw_exception_on_failure()
template<std::derived_from<
magic_exception > ExceptionType, typename ResultType , typename ... ExceptionArgs>
requires std::same_as<ResultType, int> || std::same_as<ResultType, bool>
void recognition::magic::magic_private::throw_exception_on_failure |
( |
ResultType | result, |
|
|
ExceptionArgs &&... | args ) const |
|
inlineprivate |
Throws an ExceptionType exception with ExceptionArgs if the result is false or equal to libmagic_error.
◆ to_string [1/2]
Convert the magic::flags to string.
- Parameters
-
- Returns
- The flag as a string.
◆ to_string [2/2]
Convert the magic::parameters to string.
- Parameters
-
[in] | parameter | The parameter. |
- Returns
- The parameter as a string.
◆ libmagic_error
constexpr auto recognition::magic::magic_private::libmagic_error = -1 |
|
staticconstexprprivate |
◆ libmagic_flag_none
constexpr libmagic_pair_t recognition::magic::magic_private::libmagic_flag_none |
|
staticconstexprprivate |
Initial value:{
}
#define MAGIC_NONE
Definition magic.h:32
◆ libmagic_flags
◆ libmagic_flags_count
constexpr auto recognition::magic::magic_private::libmagic_flags_count = flags_mask_t{}.size() |
|
staticconstexprprivate |
◆ libmagic_parameter_count
constexpr auto recognition::magic::magic_private::libmagic_parameter_count = 9uz |
|
staticconstexprprivate |
◆ libmagic_parameters
Initial value:{
}
#define MAGIC_PARAM_INDIR_MAX
Definition magic.h:146
#define MAGIC_PARAM_ELF_NOTES_MAX
Definition magic.h:150
#define MAGIC_PARAM_BYTES_MAX
Definition magic.h:152
#define MAGIC_PARAM_NAME_MAX
Definition magic.h:147
#define MAGIC_PARAM_ELF_SHNUM_MAX
Definition magic.h:149
#define MAGIC_PARAM_ENCODING_MAX
Definition magic.h:153
#define MAGIC_PARAM_ELF_SHSIZE_MAX
Definition magic.h:154
#define MAGIC_PARAM_REGEX_MAX
Definition magic.h:151
#define MAGIC_PARAM_ELF_PHNUM_MAX
Definition magic.h:148
◆ m_cookie
cookie_t recognition::magic::magic_private::m_cookie {nullptr} |
|
private |
◆ m_flags_mask
flags_mask_t recognition::magic::magic_private::m_flags_mask {0} |
|
private |
The documentation for this class was generated from the following file: