#include "URL.hpp"
Public Member Functions
Detailed Description
The address of a local or remote file, using the URI format. The URL objects contains the string for a URL path and provides string operations on it. A Project define an URL for each file or folder, the URL will indicate where to fetch the content. A URL is a data location asType
The type can be omitted, it is then assumed a “file://” type see URL::getType() “filename” -> “file://filename” The type is tied to a Storage interface, and some project operations ( file access, deletion, etc.) will require the matching Storage plug-in to access the remote file.Note: (2020R2) only a “file://” interface is provided via StorageFilesystem
Differences with URI specs:
- a URL object can be initialized with a relative path ( starts with ./) but such an URL is only used for URL composision
- The single slash file:/path syntax is not supported, only file://...
Path/Filename component
str(), c_str() will return the URL content without the type “file:///path/filename” -> “/path/filename”Type: file
The file paths are stored with the / separator (if \ windows separator are used, the are converted to /, except file sharing paths)Constructor & Destructor Documentation
URL() [1/4]
URL() [2/4]
URL() [3/4]
URL() [4/4]
~URL()
Member Function Documentation
c_str()
inline
getFilename()
getFilenamePath()
getFilenameRoot()
getItemName()
getType()
getURLComponents()
getURLString()
getURLSubset()
Returns
URL of the subset, if a folder will end by /