comparison 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
comparison
equal deleted inserted replaced
54:466ac9870df9 56:6ff7aabeb9d7
1 #include "animia.h"
2 #include <iostream>
3
4 int main() {
5 std::unordered_map<int, std::vector<std::string>> map = Animia::get_all_open_files();
6 for (int i = 0; i < map.size(); i++) {
7 for (std::string s: map[i]) {
8 std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n";
9 }
10 }
11 }