#include <assignment_file_searcher.hpp>
|
std::string | set_arg (const std::string &key, std::string_view value) |
|
std::string | get_expr () const |
|
| FileSearcher (std::string expr, std::map< std::string, std::string > args={}) |
|
std::vector< std::filesystem::path > | search (const std::filesystem::path &base) |
| Equivalent to search_recursive(base, 1)
|
|
std::vector< std::filesystem::path > | search_recursive (const std::filesystem::path &base, int max_depth) |
|
◆ AssignmentFileSearcher()
asmgrader::AssignmentFileSearcher::AssignmentFileSearcher |
( |
const Assignment & | assignment, |
|
|
std::string | var_regex = DEFAULT_REGEX ) |
|
explicit |
Unknown student name; search for any word in place of lastname
firstname
◆ search_recursive() [1/2]
std::vector< StudentInfo > asmgrader::AssignmentFileSearcher::search_recursive |
( |
const std::filesystem::path & | base, |
|
|
int | max_depth = DEFAULT_SEARCH_DEPTH ) |
Search for all potential student submissions for the given assignment.
◆ search_recursive() [2/2]
bool asmgrader::AssignmentFileSearcher::search_recursive |
( |
StudentInfo & | student, |
|
|
const std::filesystem::path & | base, |
|
|
int | max_depth = DEFAULT_SEARCH_DEPTH ) |
◆ DEFAULT_REGEX
auto asmgrader::AssignmentFileSearcher::DEFAULT_REGEX = R"(`lastname``firstname`_\d+_\d+_`base`\.`ext`)" |
|
staticconstexpr |
◆ DEFAULT_SEARCH_DEPTH
auto asmgrader::AssignmentFileSearcher::DEFAULT_SEARCH_DEPTH = 10 |
|
staticconstexpr |
The documentation for this class was generated from the following files: