Set severity for PELs

This commit adds an option to pass severity while logging PEL.
This will help to classify PELs based on their severity.
By default severity of all the PELs logged for system VPD failure
is set to be unrecoverable where as other failures are flagged as
predictive errors.

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I9cd10a29252a42f5031b91b9c7ad2e284ed5b861
diff --git a/const.hpp b/const.hpp
index 8130334..69c8107 100644
--- a/const.hpp
+++ b/const.hpp
@@ -85,7 +85,7 @@
 constexpr auto errIntfForBusFailure = "com.ibm.VPD.Error.DbusFailure";
 constexpr auto motherBoardInterface =
     "xyz.openbmc_project.Inventory.Item.Board.Motherboard";
-
+constexpr auto systemVpdFilePath = "/sys/bus/i2c/drivers/at24/8-0050/eeprom";
 namespace lengths
 {
 enum Lengths
@@ -136,6 +136,19 @@
     MEMORY_VPD,        /**< Memory VPD type */
     INVALID_VPD_FORMAT /**< Invalid VPD type */
 };
+
+enum PelSeverity
+{
+    NOTICE,
+    INFORMATIONAL,
+    DEBUG,
+    WARNING,
+    CRITICAL,
+    EMERGENCY,
+    ALERT,
+    ERROR
+};
+
 } // namespace constants
 } // namespace vpd
 } // namespace openpower