wex  v21.04.0
Public Types | Public Member Functions | List of all members
wex::data::dir Class Reference

Offers find_files method. More...

#include <wex/dir-data.h>

Public Types

enum  
 dir flags.
 

Public Member Functions

const auto & dir_spec () const
 Returns the dir spec.
 
dirdir_spec (const std::string &rhs)
 Sets dir specs.
 
const auto & file_spec () const
 Returns the file spec.
 
dirfile_spec (const std::string &rhs)
 Sets file specs.
 
int max_matches () const
 Returns max matches to find, or -1 if no max.
 
dirmax_matches (int rhs)
 Sets max matches.
 
auto type () const
 Returns type.
 
dirtype (type_t rhs)
 Sets type.
 

Detailed Description

Offers find_files method.

By overriding on_dir and on_file you can take care of what to do with the result.