#include <assignment_file_searcher.hpp>
|
| | AssignmentFileSearcher (const Assignment &assignment, std::string var_regex=DEFAULT_REGEX) |
| | Unknown student name; search for any word in place of lastnamefirstname
|
| |
| bool | search (StudentInfo &student, const std::filesystem::path &base) |
| | Equivalent to search_recursive(student, base, 0)
|
| |
| std::vector< StudentInfo > | search (const std::filesystem::path &base) |
| | Equivalent to search_recursive(base, 0)
|
| |
| bool | search_recursive (StudentInfo &student, const std::filesystem::path &base, int max_depth=DEFAULT_SEARCH_DEPTH) |
| |
| std::vector< StudentInfo > | search_recursive (const std::filesystem::path &base, int max_depth=DEFAULT_SEARCH_DEPTH) |
| | Search for all potential student submissions for the given assignment.
|
| |
| | 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, 0)
|
| |
| std::vector< std::filesystem::path > | search_recursive (const std::filesystem::path &base, int max_depth=DEFAULT_SEARCH_DEPTH) |
| |
|
| std::string | set_arg (const std::string &key, std::string_view value) |
| |
| std::string | get_expr () const |
| |
◆ AssignmentFileSearcher()
| asmgrader::AssignmentFileSearcher::AssignmentFileSearcher |
( |
const Assignment & | assignment, |
|
|
std::string | var_regex = DEFAULT_REGEX ) |
|
explicit |
Unknown student name; search for any word in place of lastnamefirstname
◆ search() [1/2]
| std::vector< StudentInfo > asmgrader::AssignmentFileSearcher::search |
( |
const std::filesystem::path & | base | ) |
|
Equivalent to search_recursive(base, 0)
◆ search() [2/2]
| bool asmgrader::AssignmentFileSearcher::search |
( |
StudentInfo & | student, |
|
|
const std::filesystem::path & | base ) |
Equivalent to search_recursive(student, base, 0)
◆ 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 |
The documentation for this class was generated from the following files: