AsmGrader 0.0.0
Loading...
Searching...
No Matches
database_reader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "common/expected.hpp"
4#include "grading_session.hpp"
5
6#include <filesystem>
7#include <string>
8#include <vector>
9
10namespace asmgrader {
11
16{
17public:
18 explicit DatabaseReader(std::filesystem::path path);
19
20 Expected<std::vector<StudentInfo>, std::string> read() const;
21
22private:
23 std::filesystem::path path_;
24};
25
26} // namespace asmgrader
Small CSV reader implementation for student names database Expects the specified file to contain a li...
Definition database_reader.hpp:16
Expected< std::vector< StudentInfo >, std::string > read() const
Definition database_reader.cpp:22
DatabaseReader(std::filesystem::path path)
Definition database_reader.cpp:19
std::variant wrapper for a partial implementation of C++23's expected type
Definition expected.hpp:34
Defines data classes to store result data for the current run session.
Definition asm_buffer.hpp:19