Guitar
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FileTypeDetector Class Reference

#include <FileTypeDetector.h>

Public Member Functions

std::string mimetype_by_data (const char *data, int64_t size) const
 
std::string mimetype_by_file (const char *path) const
 
std::string mimetype_by_file (std::string const &path) const
 

Private Types

using Result = FileTypeWrapper::Result
 

Private Member Functions

Result detect (const char *data, int64_t size) const
 

Private Attributes

FileTypeWrapper filetype
 

Member Typedef Documentation

◆ Result

using FileTypeDetector::Result = FileTypeWrapper::Result
private

Member Function Documentation

◆ detect()

FileTypeDetector::Result FileTypeDetector::detect ( const char *  data,
int64_t  size 
) const
private

◆ mimetype_by_data()

std::string FileTypeDetector::mimetype_by_data ( const char *  data,
int64_t  size 
) const
Here is the call graph for this function:

◆ mimetype_by_file() [1/2]

std::string FileTypeDetector::mimetype_by_file ( const char *  path) const
Here is the call graph for this function:

◆ mimetype_by_file() [2/2]

std::string FileTypeDetector::mimetype_by_file ( std::string const &  path) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ filetype

FileTypeWrapper FileTypeDetector::filetype
private

The documentation for this class was generated from the following files: