Implement parse API
This change implements the parse API, which parses input OpenPOWER VPD.
Change-Id: I646e75c642cf5872252633fef03a864e287f696b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/parser.cpp b/parser.cpp
new file mode 100644
index 0000000..e33cc79
--- /dev/null
+++ b/parser.cpp
@@ -0,0 +1,17 @@
+#include "parser.hpp"
+#include "impl.hpp"
+
+namespace openpower
+{
+namespace vpd
+{
+
+Store parse(Binary&& vpd)
+{
+ parser::Impl p(std::move(vpd));
+ Store s = p.run();
+ return s;
+}
+
+} // namespace vpd
+} // namespace openpower