summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--headless_main.cpp22
-rw-r--r--src/openvic/Simulation.hpp5
-rw-r--r--src/openvic/dataloader/Dataloader.hpp16
3 files changed, 43 insertions, 0 deletions
diff --git a/headless_main.cpp b/headless_main.cpp
new file mode 100644
index 0000000..20d89ee
--- /dev/null
+++ b/headless_main.cpp
@@ -0,0 +1,22 @@
+#ifdef OPENVIC_HEADLESS_SIM
+#include <iostream>
+#include <string>
+#include "src/openvic/Simulation.hpp"
+#include "src/openvic/dataloader/Dataloader.hpp"
+
+
+int main() {
+ std::cout << "HEADLESS SIMULATION" << std::endl;
+
+
+ std::string vic2FolderLocation = "";
+ if (vic2FolderLocation.length() <= 0) {
+ std::cout << "Path to Victoria 2 folder not specified. Manually specify location: ";
+ std::cin >> vic2FolderLocation;
+ }
+ std::filesystem::path path(vic2FolderLocation);
+
+ OpenVic::Simulation sim;
+ std::cout << (OpenVic::Dataloader::loadDir(path, sim) ? "Dataloader suceeded" : "Dataloader failed") << std::endl;
+}
+#endif \ No newline at end of file
diff --git a/src/openvic/Simulation.hpp b/src/openvic/Simulation.hpp
new file mode 100644
index 0000000..b0c2a19
--- /dev/null
+++ b/src/openvic/Simulation.hpp
@@ -0,0 +1,5 @@
+#pragma once
+
+namespace OpenVic {
+ class Simulation {};
+} \ No newline at end of file
diff --git a/src/openvic/dataloader/Dataloader.hpp b/src/openvic/dataloader/Dataloader.hpp
new file mode 100644
index 0000000..250d100
--- /dev/null
+++ b/src/openvic/dataloader/Dataloader.hpp
@@ -0,0 +1,16 @@
+#pragma once
+#include <filesystem>
+#include "../Simulation.hpp"
+
+namespace OpenVic {
+ class Dataloader {
+ public:
+ enum class LoadingMode {
+ DL_COMPATABILITY
+ };
+
+ static bool loadDir(std::filesystem::path p, Simulation& sim, LoadingMode loadMode = LoadingMode::DL_COMPATABILITY) {
+ return true;
+ }
+ };
+} \ No newline at end of file