/* * Copyright (c) 2025 LG Electronics Inc. * SPDX-License-Identifier: LicenseRef-LGE-Proprietary */ using VisionCommon; using System.Collections.Generic; namespace VisionCommon { public class CameraAgentManager { private static Dictionary _CameraAgents = new Dictionary(); public static bool ContainsKey(FovInfo fovInfo) { if (_CameraAgents.ContainsKey(fovInfo)) { return true; } return false; } public static void SetCameraAgent(FovInfo fovInfo, CameraAgentBase cameraAgent) { if (!ContainsKey(fovInfo)) { _CameraAgents.Add(fovInfo, cameraAgent); } } public static CameraAgentBase GetCameraAgent(FovInfo fovInfo) { if (ContainsKey(fovInfo)) { return _CameraAgents[fovInfo]; } return null; } public static void Clear() { _CameraAgents.Clear(); } } }