OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
file_path_util.h File Reference

shared utility for globbing files, paths can be specified as either a single file, directory or wildcards More...

#include <array>
#include <optional>
#include <stdexcept>
#include <string>
#include <vector>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include "Shared/DateTimeParser.h"
#include "Shared/StringTransform.h"
+ Include dependency graph for file_path_util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shared::FileNotFoundException
 
class  shared::NoRegexFilterMatchException
 
class  shared::FileOrderBase< T >
 
class  shared::FileOrderLocal
 

Namespaces

 shared
 

Typedefs

using shared::LocalFileComparator = std::function< bool(const std::string &, const std::string &)>
 

Functions

void shared::throw_file_not_found (const std::string &file_path)
 
void shared::throw_no_filter_match (const std::string &pattern)
 
void shared::validate_sort_options (const std::optional< std::string > &sort_by, const std::optional< std::string > &sort_regex)
 
std::vector< std::string > shared::local_glob_filter_sort_files (const std::string &file_path, const std::optional< std::string > &filter_regex, const std::optional< std::string > &sort_by, const std::optional< std::string > &sort_regex)
 

Variables

const std::string shared::FILE_SORT_ORDER_BY_KEY = "FILE_SORT_ORDER_BY"
 
const std::string shared::FILE_SORT_REGEX_KEY = "FILE_SORT_REGEX"
 
const std::string shared::PATHNAME_ORDER_TYPE = "PATHNAME"
 
const std::string shared::DATE_MODIFIED_ORDER_TYPE = "DATE_MODIFIED"
 
const std::string shared::REGEX_ORDER_TYPE = "REGEX"
 
const std::string shared::REGEX_DATE_ORDER_TYPE = "REGEX_DATE"
 
const std::string shared::REGEX_NUMBER_ORDER_TYPE = "REGEX_NUMBER"
 
const std::array< std::string, 5 > shared::supported_file_sort_order_types
 
const std::array< std::string, 2 > shared::non_regex_sort_order_types
 
const std::array< std::string, 3 > shared::regex_sort_order_types
 
const std::function< bool(const
std::string &, const
std::string &)> 
shared::common_regex_date_comp_
 
const std::function< bool(const
std::string &, const
std::string &)> 
shared::common_regex_number_comp_
 

Detailed Description

shared utility for globbing files, paths can be specified as either a single file, directory or wildcards

Author
andre.nosp@m.w.do.nosp@m.@omni.nosp@m.sci..nosp@m.com>

Definition in file file_path_util.h.