Mantid
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Mantid::Kernel::Glob Class Reference

This Glob class overrides the glob() method of Poco::Glob class to make it more reliable. More...

#include <Glob.h>

Inheritance diagram for Mantid::Kernel::Glob:

Static Public Member Functions

static void glob (const Poco::Path &pathPattern, std::set< std::string > &files, int options=0)
 Creates a set of files that match the given pathPattern. More...
 

Detailed Description

This Glob class overrides the glob() method of Poco::Glob class to make it more reliable.

Author
Roman Tolchenov, Tessella plc
Date
23/07/2009

Definition at line 28 of file Glob.h.

Member Function Documentation

◆ glob()

void Mantid::Kernel::Glob::glob ( const Poco::Path &  pathPattern,
std::set< std::string > &  files,
int  options = 0 
)
static

Creates a set of files that match the given pathPattern.

The path may be give in either Unix, Windows or VMS syntax and is automatically expanded by calling Path::expand().

The pattern may contain wildcard expressions even in intermediate directory names (e.g. /usr/include/* /**.h).

Note that, for obvious reasons, escaping characters in a pattern with a backslash does not work in Windows-style paths.

Directories that for whatever reason cannot be traversed are ignored.

It seems that whatever bug Poco had is fixed now. So calling Poco::Glob::glob(pathPattern,files,options) inside.

Parameters
pathPattern:: The search pattern
files:: The names of the files that match the pattern
options:: Options

Definition at line 33 of file Glob.cpp.

Referenced by Mantid::Kernel::ConfigServiceImpl::getFullPath(), and Mantid::DataHandling::LoadRawHelper::searchForLogFiles().


The documentation for this class was generated from the following files: