tfel
Loading...
Searching...
No Matches
RecursiveFind.hxx File Reference

03 mai 2011 More...

#include <map>
#include <regex>
#include <vector>
#include <string>
#include "TFEL/Config/TFELConfig.hxx"

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Functions

TFELSYSTEM_VISIBILITY_EXPORT std::map< std::string, std::vector< std::string > > tfel::system::recursiveFind (const std::string &, const std::string &, const bool b=true, const unsigned short=0u, const unsigned short=100u)
 recursively search files matching a given regular expression from the given directory.
TFELSYSTEM_VISIBILITY_EXPORT void tfel::system::recursiveFind (std::map< std::string, std::vector< std::string > > &, const std::string &, const std::string &, const bool=true, const unsigned short=0u, const unsigned short=100u)
 recursively search files matching a given regular expression from the given directory.
TFELSYSTEM_VISIBILITY_EXPORT std::map< std::string, std::vector< std::string > > tfel::system::recursiveFind (const std::regex &, const std::string &, const bool=true, const unsigned short=0u, const unsigned short=100u)
 recursively search files matching a given regular expression from the given directory.
TFELSYSTEM_VISIBILITY_EXPORT void tfel::system::recursiveFind (std::map< std::string, std::vector< std::string > > &, const std::regex &, const std::string &, const bool=true, const unsigned short=0u, const unsigned short=100u)
 recursively search files matching a given regular expression from the given directory.

Detailed Description

03 mai 2011

Author
Thomas Helfer

Function Documentation

◆ recursiveFind() [1/4]

TFELSYSTEM_VISIBILITY_EXPORT std::map< std::string, std::vector< std::string > > tfel::system::recursiveFind ( const std::regex & ,
const std::string & ,
const bool = true,
const unsigned short = 0u,
const unsigned short = 100u )

recursively search files matching a given regular expression from the given directory.

Parameters
[in]re: a regular expression
[in]name: name of the directory from which the search starts
[in]b: throw an exception if something wrong happens.
[in]depth: depth reached in the recursive search
[in]mdepth: maximum depth allowed
Returns
the matching files, ordered by directories

◆ recursiveFind() [2/4]

TFELSYSTEM_VISIBILITY_EXPORT std::map< std::string, std::vector< std::string > > tfel::system::recursiveFind ( const std::string & ,
const std::string & ,
const bool b = true,
const unsigned short = 0u,
const unsigned short = 100u )

recursively search files matching a given regular expression from the given directory.

Parameters
re: a regular expression
name: name of the directory from which the search starts
b: throw an exception if something wrong happens
depth: depth reached in the recursive search
mdepth: maximum depth allowed
Returns
the matching files, ordered by directories

◆ recursiveFind() [3/4]

TFELSYSTEM_VISIBILITY_EXPORT void tfel::system::recursiveFind ( std::map< std::string, std::vector< std::string > > & ,
const std::regex & ,
const std::string & ,
const bool = true,
const unsigned short = 0u,
const unsigned short = 100u )

recursively search files matching a given regular expression from the given directory.

Parameters
[out]r: the matching files, ordered by directories
[in]re: a regular expression
[in]b: throw an exception if something wrong happens.
[in]name: name of the directory from which the search starts
[in]depth: depth reached in the recursive search
[in]mdepth: maximum depth allowed

◆ recursiveFind() [4/4]

TFELSYSTEM_VISIBILITY_EXPORT void tfel::system::recursiveFind ( std::map< std::string, std::vector< std::string > > & ,
const std::string & ,
const std::string & ,
const bool = true,
const unsigned short = 0u,
const unsigned short = 100u )

recursively search files matching a given regular expression from the given directory.

Parameters
[out]r: the matching files, ordered by directories
[in]re: a regular expression
[in]name: name of the directory from which the search starts
[in]b: throw an exception if something wrong happens.
[in]depth: depth reached in the recursive search
[in]mdepth: maximum depth allowed