Make Terminus info a class variable

The terminus information is needed at various places in
pldm and instead of passing that structure around via
function arguments, it is cheaper to maintain it as a
class variable.

And this commit also removes the redundant structure that
stores partial terminus information.

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: If34cfe1c47bdeceaabdae779ee7cd8569beedf5d
diff --git a/libpldmresponder/platform.cpp b/libpldmresponder/platform.cpp
index 0ad5fb6..2d6ed21 100644
--- a/libpldmresponder/platform.cpp
+++ b/libpldmresponder/platform.cpp
@@ -623,6 +623,12 @@
     pdrEntry.data = pdrBuffer.data();
     pdrEntry.size = pdrBuffer.size();
     repo.addRecord(pdrEntry);
+    if (hostPDRHandler)
+    {
+        hostPDRHandler->tlPDRInfo.insert_or_assign(
+            pdr->terminus_handle,
+            std::make_tuple(pdr->tid, locatorValue->eid, pdr->validity));
+    }
 }
 
 Response Handler::getStateSensorReadings(const pldm_msg* request,