PEL: User Data class

This class is used for accessing the UserData section of a PEL.

This section contains free format data that can be identified by the
component ID, subtype, and version fields in the section header.

Signed-off-by: Aatir Manzur <aatrapps@gmail.com>
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I1223f84353e81202d1ff63c00f3d926cda4994e5
diff --git a/extensions/openpower-pels/section_factory.cpp b/extensions/openpower-pels/section_factory.cpp
index 69274c0..11d8386 100644
--- a/extensions/openpower-pels/section_factory.cpp
+++ b/extensions/openpower-pels/section_factory.cpp
@@ -4,6 +4,7 @@
 #include "generic.hpp"
 #include "pel_types.hpp"
 #include "private_header.hpp"
+#include "user_data.hpp"
 #include "user_header.hpp"
 
 namespace openpower
@@ -32,6 +33,9 @@
         case static_cast<uint16_t>(SectionID::privateHeader):
             section = std::make_unique<PrivateHeader>(pelData);
             break;
+        case static_cast<uint16_t>(SectionID::userData):
+            section = std::make_unique<UserData>(pelData);
+            break;
         case static_cast<uint16_t>(SectionID::userHeader):
             section = std::make_unique<UserHeader>(pelData);
             break;