Libmagicxx v5.1.1
A C++ wrapper library over the Magic Number Recognition Library.
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
magic.cpp File Reference
#include <cmath>
#include <array>
#include <format>
#include <utility>
#include <magic.hpp>
#include <magic.h>
Include dependency graph for magic.cpp:

Classes

class  recognition::magic::magic_private
 
struct  recognition::magic::magic_private::flags_converter
 
struct  recognition::magic::magic_private::libmagic_pair_converter
 

Namespaces

namespace  recognition
 
namespace  recognition::detail
 

Functions

std::string recognition::to_string (const magic::types_of_files_t &types_of_files, const std::string &type_separator=" -> ", const std::string &file_separator="\n")
 Convert the magic::types_of_files_t to string.
 
std::string recognition::to_string (const magic::expected_file_type_t &expected_file_type)
 Convert the magic::expected_file_type_t to string.
 
std::string recognition::to_string (const magic::expected_types_of_files_t &expected_types_of_files, const std::string &type_separator=" -> ", const std::string &file_separator="\n")
 Convert the magic::expected_types_of_files_t to string.
 
std::string recognition::to_string (magic::flags flag)
 Convert the magic::flags to string.
 
std::string recognition::to_string (const magic::flags_container_t &flags, const std::string &separator=", ")
 Convert the magic::flags_container_t to string.
 
std::string recognition::to_string (magic::parameters parameter)
 Convert the magic::parameters to string.
 
std::string recognition::to_string (const magic::parameter_value_map_t &parameters, const std::string &value_separator=": ", const std::string &parameter_separator=", ")
 Convert the magic::parameter_value_map_t to string.