From 11f6cb4484e17dbbce2eb228044f56a128c65772 Mon Sep 17 00:00:00 2001
From: Oliver Schubert <o.schubert@tum.de>
Date: Wed, 18 Dec 2024 15:41:24 +0100
Subject: [PATCH] Adds main file to test boost library as xml parser.

---
 DesignEvaluator/src/main.cpp | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 DesignEvaluator/src/main.cpp

diff --git a/DesignEvaluator/src/main.cpp b/DesignEvaluator/src/main.cpp
new file mode 100644
index 00000000..4db511bf
--- /dev/null
+++ b/DesignEvaluator/src/main.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+#include <boost/property_tree/xml_parser.hpp>
+#include <boost/property_tree/ptree.hpp>
+
+int main () {
+
+    boost::property_tree::ptree tree1, tree2;
+    try
+    {
+        boost::property_tree::read_xml("oldFormat-CSR.xml", tree1);
+    }
+    catch(const std::exception& e)
+    {
+        std::cerr << "Error parsing XML: " << e.what() << std::endl;
+        return 1;
+    }
+    
+    
+    std::cout << "Hello World!" << std::endl;
+
+    return 0;
+}
\ No newline at end of file
-- 
GitLab