31 #ifndef DRAIN_IMAGE_FILEINFO
32 #define DRAIN_IMAGE_FILEINFO
36 #include <drain/RegExp.h>
51 FileInfo(
const std::string & extRE =
"[\\w]+",
int flags=REG_ICASE|REG_EXTENDED){
52 setExtensionRegExp(extRE, flags);
55 void setExtensionRegExp(
const std::string & extRE,
int flags=REG_ICASE|REG_EXTENDED);
Definition: FileInfo.h:97
Definition: FileInfo.h:48
bool checkPath(const std::string &path) const
Accepts or rejects a filename extension.
Definition: FileInfo.h:59
bool checkPath(const FilePath &filePath) const
Accepts or rejects the extension extracted from file path.
Definition: FileInfo.h:73
drain::RegExp extensionRegexp
Regexp to be set inside parentheses.
Definition: FileInfo.h:88
bool checkExtension(const std::string &ext) const
Accepts or rejects a filename extension.
Definition: FileInfo.h:83
Extracts and stores directory path, base filename and extension.
Definition: FilePath.h:58
bool test(const std::string &str) const
Tests if the regular expression accepts the given std::string.
Definition: RegExp.cpp:128
Definition: DataSelector.cpp:1277