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

Offers data to be used by the dir class. More...

#include <wex/data/dir.h>

Public Types

enum  { FILES = 0 , DIRS = 1 , RECURSIVE = 2 , HIDDEN = 3 }
 Dir flags. More...
 
typedef std::bitset< 4 > type_t
 A typedef containing 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.
 
auto * find_replace_data () const
 Returns frd.
 
dirfind_replace_data (factory::find_replace_data *rhs)
 Sets frd.
 
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 (const type_t &rhs)
 Sets type.
 

Static Public Member Functions

static type_t type_t_def ()
 Returns default type flags.
 

Detailed Description

Offers data to be used by the dir class.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Dir flags.

Enumerator
FILES 

include files

DIRS 

include directories

RECURSIVE 

recursive

HIDDEN 

include hidden files

Member Function Documentation

◆ type_t_def()

static type_t wex::data::dir::type_t_def ( )
inlinestatic

Returns default type flags.

All flags, except HIDDEN are on.