Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
InternetMediaTypeRegistry.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
5
7
8 /*
9 ********************************************************************************
10 ************************** InternetMediaTypeRegistry ***************************
11 ********************************************************************************
12 */
13 inline optional<InternetMediaType> InternetMediaTypeRegistry::GetAssociatedContentType (const filesystem::path& fileSuffix) const
14 {
15 return GetAssociatedContentType (String{fileSuffix});
16 }
17 template <typename EXCEPTION>
18 inline void InternetMediaTypeRegistry::CheckIsA (const InternetMediaType& moreGeneralType, const InternetMediaType& moreSpecificType,
19 const EXCEPTION& throwIfNot) const
20 {
21 if (not IsA (moreGeneralType, moreSpecificType)) {
22 Execution::Throw (throwIfNot);
23 }
24 }
25
26}
nonvirtual bool IsA(const InternetMediaType &moreGeneralType, const InternetMediaType &moreSpecificType) const
return true if moreSpecificType 'isa' moreGeneralType
nonvirtual optional< InternetMediaType > GetAssociatedContentType(const FileSuffixType &fileSuffix) const
void Throw(T &&e2Throw)
identical to builtin C++ 'throw' except that it does helpful, type dependent DbgTrace() messages firs...
Definition Throw.inl:43