Thrill  0.1
thrill::vfs::glob_local Namespace Reference

Classes

class  CSimpleGlobTempl
 Implementation of the SimpleGlob class. More...
 
class  SimpleGlobBase
 Unix glob implementation. More...
 
class  SimpleGlobUtil
 String manipulation functions. More...
 

Typedefs

using CSimpleGlobA = CSimpleGlobTempl< char >
 ASCII/MBCS version of CSimpleGlob. More...
 
using CSimpleGlobW = CSimpleGlobTempl< wchar_t >
 wchar_t version of CSimpleGlob More...
 

Enumerations

enum  SG_Error { SG_SUCCESS = 0, SG_ERR_NOMATCH = 1, SG_ERR_MEMORY = -1, SG_ERR_FAILURE = -2 }
 Error return codes. More...
 
enum  SG_FileType { SG_FILETYPE_INVALID, SG_FILETYPE_FILE, SG_FILETYPE_DIR }
 
enum  SG_Flags {
  SG_GLOB_ERR = 1 << 0, SG_GLOB_MARK = 1 << 1, SG_GLOB_NOSORT = 1 << 2, SG_GLOB_NOCHECK = 1 << 3,
  SG_GLOB_TILDE = 1 << 4, SG_GLOB_ONLYDIR = 1 << 5, SG_GLOB_ONLYFILE = 1 << 6, SG_GLOB_NODOT = 1 << 7,
  SG_GLOB_FULLSORT = 1 << 8
}
 The operation of SimpleGlob is fine-tuned via the use of a combination of the following flags. More...
 

Typedef Documentation

◆ CSimpleGlobA

ASCII/MBCS version of CSimpleGlob.

Definition at line 955 of file simple_glob.hpp.

◆ CSimpleGlobW

using CSimpleGlobW = CSimpleGlobTempl<wchar_t>

wchar_t version of CSimpleGlob

Definition at line 958 of file simple_glob.hpp.

Enumeration Type Documentation

◆ SG_Error

enum SG_Error

Error return codes.

Enumerator
SG_SUCCESS 
SG_ERR_NOMATCH 
SG_ERR_MEMORY 
SG_ERR_FAILURE 

Definition at line 227 of file simple_glob.hpp.

◆ SG_FileType

Enumerator
SG_FILETYPE_INVALID 
SG_FILETYPE_FILE 
SG_FILETYPE_DIR 

Definition at line 317 of file simple_glob.hpp.

◆ SG_Flags

enum SG_Flags

The operation of SimpleGlob is fine-tuned via the use of a combination of the following flags.

The flags may be passed at initialization of the class and used for every filespec added, or alternatively they may optionally be specified in the call to Add() and be different for each filespec.

Parameters
SG_GLOB_ERRReturn upon read error (e.g. directory does not have read permission)
SG_GLOB_MARKAppend a slash (backslash in Windows) to every path which corresponds to a directory
SG_GLOB_NOSORTBy default, files are returned in sorted into string order. With this flag, no sorting is done. This is not compatible with SG_GLOB_FULLSORT.
SG_GLOB_FULLSORTBy default, files are sorted in groups belonging to each filespec that was added. For example if the filespec "b*" was added before the filespec "a*" then the argv array will contain all b* files sorted in order, followed by all a* files sorted in order. If this flag is specified, the entire array will be sorted ignoring the filespec groups.
SG_GLOB_NOCHECKIf the pattern doesn't match anything, return the original pattern.
SG_GLOB_TILDETilde expansion is carried out (on Unix platforms)
SG_GLOB_ONLYDIRReturn only directories which match (not compatible with SG_GLOB_ONLYFILE)
SG_GLOB_ONLYFILEReturn only files which match (not compatible with SG_GLOB_ONLYDIR)
SG_GLOB_NODOTDo not return the "." or ".." special directories.
Enumerator
SG_GLOB_ERR 
SG_GLOB_MARK 
SG_GLOB_NOSORT 
SG_GLOB_NOCHECK 
SG_GLOB_TILDE 
SG_GLOB_ONLYDIR 
SG_GLOB_ONLYFILE 
SG_GLOB_NODOT 
SG_GLOB_FULLSORT 

Definition at line 214 of file simple_glob.hpp.