Class ExtMime#

Class Documentation#

class ExtMime#

Helper to determine MIME type based on file extension.

Public Functions

ExtMime()#
~ExtMime()#
std::string getMimeType(const std::string &filename) const#

Get the MIME type for a given filename based on extension.

Parameters:

filename – - The given filename

Returns:

The corresponding MIME type

ExtMime(const ExtMime&) = delete#
ExtMime &operator=(const ExtMime&) = delete#
ExtMime(ExtMime &&other) noexcept#

Move constructor.

Parameters:

other – - The ExtMime instance to move from

ExtMime &operator=(ExtMime &&other) noexcept#

Move assignment operator.

Parameters:

other – - The ExtMime instance to move from

Returns:

This instance