/** * 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 Eac3LfeControlMapper { static const int LFE_HASH = HashingUtils::HashString("LFE"); static const int NO_LFE_HASH = HashingUtils::HashString("NO_LFE"); Eac3LfeControl GetEac3LfeControlForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LFE_HASH) { return Eac3LfeControl::LFE; } else if (hashCode == NO_LFE_HASH) { return Eac3LfeControl::NO_LFE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Eac3LfeControl::NOT_SET; } Aws::String GetNameForEac3LfeControl(Eac3LfeControl enumValue) { switch(enumValue) { case Eac3LfeControl::LFE: return "LFE"; case Eac3LfeControl::NO_LFE: return "NO_LFE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Eac3LfeControlMapper } // namespace Model } // namespace MediaConvert } // namespace Aws