Stroika Library
3.0d16
Help-Home
Loading...
Searching...
No Matches
InternetMediaTypeRegistry.inl
1
/*
2
* Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3
*/
4
#include "
Stroika/Foundation/Memory/Optional.h
"
5
6
namespace
Stroika::Foundation::DataExchange
{
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
}
Optional.h
Stroika::Foundation::DataExchange::InternetMediaTypeRegistry::IsA
nonvirtual bool IsA(const InternetMediaType &moreGeneralType, const InternetMediaType &moreSpecificType) const
return true if moreSpecificType 'isa' moreGeneralType
Definition
InternetMediaTypeRegistry.cpp:862
Stroika::Foundation::DataExchange::InternetMediaTypeRegistry::GetAssociatedContentType
nonvirtual optional< InternetMediaType > GetAssociatedContentType(const FileSuffixType &fileSuffix) const
Definition
InternetMediaTypeRegistry.cpp:838
Stroika::Foundation::DataExchange
Definition
String.h:1943
Stroika::Foundation::Execution::Throw
void Throw(T &&e2Throw)
identical to builtin C++ 'throw' except that it does helpful, type dependent DbgTrace() messages firs...
Definition
Throw.inl:43
Library
Sources
Stroika
Foundation
DataExchange
InternetMediaTypeRegistry.inl
Generated by
1.9.8