terminus.cpp (51d66b59c6f0bdad9c6a79f39f1c192bafc00c1f) terminus.cpp (04ac9971cece872021e01afd3890cd3ffff6eb39)
1#include "terminus.hpp"
2
3#include "libpldm/platform.h"
4
5#include "terminus_manager.hpp"
6
7#include <common/utils.hpp>
8

--- 47 unchanged lines hidden (view full) ---

56
57std::optional<std::string_view> Terminus::findTerminusName()
58{
59 auto it = std::find_if(
60 entityAuxiliaryNamesTbl.begin(), entityAuxiliaryNamesTbl.end(),
61 [](const std::shared_ptr<EntityAuxiliaryNames>& entityAuxiliaryNames) {
62 const auto& [key, entityNames] = *entityAuxiliaryNames;
63 /**
1#include "terminus.hpp"
2
3#include "libpldm/platform.h"
4
5#include "terminus_manager.hpp"
6
7#include <common/utils.hpp>
8

--- 47 unchanged lines hidden (view full) ---

56
57std::optional<std::string_view> Terminus::findTerminusName()
58{
59 auto it = std::find_if(
60 entityAuxiliaryNamesTbl.begin(), entityAuxiliaryNamesTbl.end(),
61 [](const std::shared_ptr<EntityAuxiliaryNames>& entityAuxiliaryNames) {
62 const auto& [key, entityNames] = *entityAuxiliaryNames;
63 /**
64 * There is only one Overal system container entity in one terminus.
65 * The entity auxiliary name PDR of that terminus with the that type
66 *of containerID will include terminus name.
67 **/
64 * There is only one Overall system container entity in one
65 * terminus. The entity auxiliary name PDR of that terminus with the
66 * that type of containerID will include terminus name.
67 */
68 return (
69 entityAuxiliaryNames &&
70 key.containerId == PLDM_PLATFORM_ENTITY_SYSTEM_CONTAINER_ID &&
71 entityNames.size());
72 });
73
74 if (it != entityAuxiliaryNamesTbl.end())
75 {

--- 466 unchanged lines hidden ---
68 return (
69 entityAuxiliaryNames &&
70 key.containerId == PLDM_PLATFORM_ENTITY_SYSTEM_CONTAINER_ID &&
71 entityNames.size());
72 });
73
74 if (it != entityAuxiliaryNamesTbl.end())
75 {

--- 466 unchanged lines hidden ---