7 #ifndef _REGULAR_EXPRESSION_RESOLVER_HEADER_
8 #define _REGULAR_EXPRESSION_RESOLVER_HEADER_
33 typedef struct tag_tTreeMember
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
unsigned int tUInt
type definition for unsigned integer value (platform and compiler dependent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
Class for resolving regular expression inside a filename or path.
static tBool ContainsRegEx(const cString &strSource)
Check if string contains regular expression.
tBool GetFolderMatch(const cString &strInput, cFilename &strFoldername, tBool bRecursive=tTrue, tUInt nRecDepth=0)
Retrieves a single folder, if any, from a directory using regular expressions.
cRegularExpressionResolver()
Default constructor.
tBool GetFileMatch(const cString &strInput, cFilename &strFilename)
Retrieves a single file if any from a directory using regular expressions.
tBool GetFolderPathList(const cString &strInput, tTreeMemberList &lstFolders, tBool bRecursive=tTrue, tUInt nRecDepth=0)
Retrieve all subdirectories from a directory using regular expressions.
cString GetFirstMatch(const cString &strSource)
Retrieve first match of regular expression.
cRegularExpressionResolver(const cString &strExpression)
Constructor with preset expression.
tBool GetFilesPathList(const cString &strInput, tTreeMemberList &lstFiles)
Retrieve all files from a directory using regular expressions.
std::vector< tTreeMember > tTreeMemberList
Definition for List of List of tTreeMember.
virtual ~cRegularExpressionResolver()
Destructor.
tBool GetFileFolderPathList(const cString &strInput, tTreeMemberList &lstFilesFolders, tBool bRecursive=tTrue, tUInt nRecDepth=0)
Retrieve all files from subdirectories using regular expressions.
cRegularExpressionResolver(const cRegularExpressionResolver &oRegExpRes)
Copy constructor.
cRegularExpressionResolver(const tChar *strExpression, tBool bCaseSensitive=tTrue)
Constructor with preset expression.
cString GetRegExFromString(const cString &strSource, cString &strPath, tBool bFull=tFalse)
Retrieve regular expression and path.
#define tFalse
Value for tBool.
#define tTrue
Value for tBool.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Internal Structure to resolve Regular expressions.
cFilename strFullPath
File path of item.
tBool bIsFile
Is File or Directory.
cString strName
name of item
tInt nParentIdx
parent index depending on