Class shared::FileOrderLocal¶
-
class
FileOrderLocal
: public shared::FileOrderBase<LocalFileComparator>¶ Public Functions
-
FileOrderLocal
(const std::optional<std::string> &sort_regex, const std::optional<std::string> &sort_by)¶
-
LocalFileComparator
getFileComparator
()¶
Protected Attributes
-
const std::map<std::string, LocalFileComparator> shared::FileOrderLocal::comparator_map_{ {PATHNAME_ORDER_TYPE, [](const std::string& lhs, const std::string& rhs) -> bool { return lhs < rhs; }}, {DATE_MODIFIED_ORDER_TYPE, [](const std::string& lhs, const std::string& rhs) -> bool { return boost::filesystem::last_write_time(lhs) < boost::filesystem::last_write_time(rhs); }}, {REGEX_ORDER_TYPE, [this](const std::string& lhs, const std::string& rhs) -> bool { return this->concatCaptureGroups(lhs) < this->concatCaptureGroups(rhs); }}, {REGEX_DATE_ORDER_TYPE, [this](const std::string& lhs, const std::string& rhs) -> bool { return common_regex_date_comp_(this->concatCaptureGroups(lhs),this->concatCaptureGroups(rhs)); }}, {REGEX_NUMBER_ORDER_TYPE, [this](const std::string& lhs, const std::string& rhs) -> bool { return common_regex_number_comp_(this->concatCaptureGroups(lhs),this->concatCaptureGroups(rhs)); }}}
-