#include <descriptor.hpp>
template<enum Format F>
v_1_0_0::FormatMatcher class final
Matcher for file formats.
| Template parameters | |
|---|---|
| F | The Format matched by this matcher. |
Matches a specific Format. A FormatMatcher can be implemented by constructing a FormatMatcher with the specified format as its template parameter along with filename suffices and a byte sequence to match.
Base classes
- class v_1_0_0::Matcher
- Interface for matchers.
Constructors, destructors, conversion operators
- FormatMatcher(const SuffixSet& suffices, const Bytes& bytes, const std::set<Codec>& codecs)
- Constructor with reference suffices and bytes.
- FormatMatcher(const SuffixSet& suffices, const std::set<Codec>& codecs)
- Constructor with reference suffices.
- ~FormatMatcher() defaulted virtual noexcept
- Virtual default destructor.
Function documentation
template<enum Format F>
arcsdec:: v_1_0_0:: FormatMatcher<F>:: FormatMatcher(const SuffixSet& suffices,
const Bytes& bytes,
const std::set<Codec>& codecs)
Constructor with reference suffices and bytes.
| Parameters | |
|---|---|
| suffices in | Suffices accepted by this Format |
| bytes in | A byte sequence accepted by this Format |
| codecs in | Codecs supported for this Format |
template<enum Format F>
arcsdec:: v_1_0_0:: FormatMatcher<F>:: FormatMatcher(const SuffixSet& suffices,
const std::set<Codec>& codecs)
Constructor with reference suffices.
| Parameters | |
|---|---|
| suffices in | Suffices accepted by this Format |
| codecs in | Codecs supported for this Format |