Public Member Functions | Public Attributes | List of all members
FileInfo Class Reference
Collaboration diagram for FileInfo:
Collaboration graph
[legend]

Public Member Functions

 FileInfo (const std::string &extRE="[\\w]+", int flags=REG_ICASE|REG_EXTENDED)
 
void setExtensionRegExp (const std::string &extRE, int flags=REG_ICASE|REG_EXTENDED)
 
bool checkPath (const std::string &path) const
 Accepts or rejects a filename extension.
 
bool checkPath (const FilePath &filePath) const
 Accepts or rejects the extension extracted from file path. More...
 
bool checkExtension (const std::string &ext) const
 Accepts or rejects a filename extension. More...
 

Public Attributes

drain::RegExp extensionRegexp
 Regexp to be set inside parentheses.
 

Member Function Documentation

◆ checkExtension()

bool checkExtension ( const std::string &  ext) const
inline

Accepts or rejects a filename extension.

Parameters
ext- filename extension (without leading period)
Returns
- true, if the extension

◆ checkPath()

bool checkPath ( const FilePath filePath) const
inline

Accepts or rejects the extension extracted from file path.

Extracts the extesions in [<directory>/]<filename>.<ext>.

Parameters
ext- filename extension (without leading period)
Returns
- true, if the extension

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