A maxon::Url defines the location of a file or a similar resource. The class allows to construct a file path and to handle files. maxon::Url is based on maxon::UrlInterface.
A maxon::Url can be constructed with:
Various default folders can be obtained from the maxon::Application class:
See also Application Manual.
An URL can reference files on the file system, web addresses, files within ZIP files, etc. The scheme defines what kind of object a given maxon::Url is referencing:
The supported maxon::UrlScheme types are:
An maxon::Url is composed of several parts. These parts can be accessed individually:
The maxon::Url class contains several functions to analyse and handle files:
Data streams are used to write into and read from a resource defined with a maxon::Url:
See also maxon::IoFileOutputHelper and maxon::IoFileInputHelper.
For details on input/output streams see InputStream Manual and OutputStream Manual.
maxon::URLFLAGS can be used to define maxon::Url attributes.
Miscellaneous functions are: