Add person dataset assembler, restructure repo

This commit is contained in:
uvos 2024-04-05 12:46:06 +02:00
parent 81475815fb
commit 2765509bf3
25 changed files with 172 additions and 15 deletions

View file

@ -1,16 +0,0 @@
#pragma once
#include <string>
#include <filesystem>
#include <fstream>
#include <stdexcept>
#include <sstream>
inline std::string readFile(const std::filesystem::path& path)
{
std::ifstream file(path);
if(!file.is_open())
throw std::runtime_error(std::string("could not open file ") + path.string());
std::stringstream ss;
ss<<file.rdbuf();
return ss.str();
}