|
|
@@ -5,6 +5,7 @@
|
|
|
#include <sstream>
|
|
|
|
|
|
#include "json.hpp"
|
|
|
+#include "priorityqueue.h"
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
// read JSON file and store in jsonObject
|
|
|
@@ -18,4 +19,19 @@ int main(int argc, char** argv) {
|
|
|
|
|
|
std::string sampleName; // Sample key name to iterate
|
|
|
nlohmann::json outputJSON; // output JSON file
|
|
|
+ //int currValue = 0; // current key value
|
|
|
+
|
|
|
+ int n = jsonObject["metadata"]["arraySize"];
|
|
|
+
|
|
|
+ class PriorityQueue sampleHeap;
|
|
|
+ sampleHeap.initiateHeap(n);
|
|
|
+
|
|
|
+ for (auto itr = jsonObject.begin(); itr != jsonObject.end(); ++itr) {
|
|
|
+ if (sampleName != "metadata") {
|
|
|
+ for (auto arrayItr = jsonObject[sampleName].begin(); arrayItr != jsonObject[sampleName].end(); ++arrayItr) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ std::cout << outputJSON << std::endl;
|
|
|
+ file.close();
|
|
|
}
|