|
Kactus2
Kactus2 reference guide
|
Handles data regarding files. More...
Functions | |
| KACTUS2_API QMultiMap< QString, QString > | constructFileSuffixTable () |
| KACTUS2_API bool | filePathExists (QString const &relativeTo, QString const &filePath) |
| KACTUS2_API QString | getFileTypeForSuffix (QMultiMap< QString, QString > const &fileSuffixTable, QString const &suffix) |
| KACTUS2_API QString | getModifiedPathWithExtension (QString const &filePath, QString const &extension) |
| KACTUS2_API bool | isURI (QString const &uri) |
| KACTUS2_API bool | isValidURI (QString const &relativeTo, QString const &ipxactURI) |
| KACTUS2_API QString | resolvePath (QString const &ipxactURI) |
| KACTUS2_API QString | resolveURI (QString const &ipxactURI) |
Variables | |
| const QRegularExpression | URL_VALIDITY_REG_EXP |
| Regular expression to validate URLs. | |
Handles data regarding files.
| KACTUS2_API QMultiMap< QString, QString > FileHandler::constructFileSuffixTable | ( | ) |
Construct a table for file types.
| KACTUS2_API bool FileHandler::filePathExists | ( | QString const & | relativeTo, |
| QString const & | filePath ) |
Check if given file path exists in the file system.
| [in] | relativeTo | Path to resolve relative file paths from. |
| [in] | filePath | The path to check. |
| KACTUS2_API QString FileHandler::getFileTypeForSuffix | ( | QMultiMap< QString, QString > const & | fileSuffixTable, |
| QString const & | suffix ) |
Get a file type for the selected file extension.
| [in] | fileSuffixTable | Table containing file types combined with file name extensions. |
| [in] | suffix | The selected extension. |
| KACTUS2_API QString FileHandler::getModifiedPathWithExtension | ( | QString const & | filePath, |
| QString const & | extension ) |
Modify the selected path to include the selected extension in the end.
| [in] | filePath | The selected file path. |
| [in] | extension | The selected file extension. |
| KACTUS2_API bool FileHandler::isURI | ( | QString const & | uri | ) |
Check if given input is a URI.
| [in] | uri | The input to check. |
| KACTUS2_API bool FileHandler::isValidURI | ( | QString const & | relativeTo, |
| QString const & | ipxactURI ) |
Check if given ipxactURI is valid.
| [in] | relativeTo | Path to resolve relative file paths from. |
| [in] | ipxactURI | The URI to check. |
| KACTUS2_API QString FileHandler::resolvePath | ( | QString const & | ipxactURI | ) |
Resolve environment variables in a given URI to form a file path.
| [in] | ipxactURI |
| KACTUS2_API QString FileHandler::resolveURI | ( | QString const & | ipxactURI | ) |
Resolve environment variables in a given URI to form a URI.
| [in] | ipxactURI |
| const QRegularExpression FileHandler::URL_VALIDITY_REG_EXP |
Regular expression to validate URLs.
Definition at line 27 of file FileHandler.h.