/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::Utils; namespace Aws { namespace MediaConvert { namespace Model { namespace MsSmoothManifestEncodingMapper { static const int UTF8_HASH = HashingUtils::HashString("UTF8"); static const int UTF16_HASH = HashingUtils::HashString("UTF16"); MsSmoothManifestEncoding GetMsSmoothManifestEncodingForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UTF8_HASH) { return MsSmoothManifestEncoding::UTF8; } else if (hashCode == UTF16_HASH) { return MsSmoothManifestEncoding::UTF16; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return MsSmoothManifestEncoding::NOT_SET; } Aws::String GetNameForMsSmoothManifestEncoding(MsSmoothManifestEncoding enumValue) { switch(enumValue) { case MsSmoothManifestEncoding::UTF8: return "UTF8"; case MsSmoothManifestEncoding::UTF16: return "UTF16"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace MsSmoothManifestEncodingMapper } // namespace Model } // namespace MediaConvert } // namespace Aws