diff dep/animia/test/main.cpp @ 56:6ff7aabeb9d7

deps: add animia for open files detection
author Paper <mrpapersonic@gmail.com>
date Thu, 28 Sep 2023 12:35:21 -0400
parents
children 4c6dd5999b39
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dep/animia/test/main.cpp	Thu Sep 28 12:35:21 2023 -0400
@@ -0,0 +1,11 @@
+#include "animia.h"
+#include <iostream>
+
+int main() {
+	std::unordered_map<int, std::vector<std::string>> map = Animia::get_all_open_files();
+	for (int i = 0; i < map.size(); i++) {
+		for (std::string s: map[i]) {
+			std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n";
+		}
+	}
+}