Libmagicxx v5.1.1
A C++ wrapper library over the Magic Number Recognition Library.
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
magic.hpp File Reference
#include <map>
#include <bitset>
#include <vector>
#include <memory>
#include <expected>
#include <file_concepts.hpp>
#include <magic_exception.hpp>
Include dependency graph for magic.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  recognition::magic
 The magic class provides a C++ wrapper over the Magic Number Recognition Library. The magic class is used to identify the type of a file, if the following steps have been completed;. More...
 

Namespaces

namespace  recognition
 

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.