#include <assets.h>
This interface represents a file asset, so a plain file (or directory) stored in an asset repository.
Public Member Functions | |
MAXON_METHOD const Url & | GetUrl () const |
Static Public Member Functions | |
static MAXON_METHOD Result< FileAsset > | Create (const Url &url) |
Private Member Functions | |
MAXON_INTERFACE (FileAssetInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.fileasset", MAXON_IMPLEMENTATION_MODULE("net.maxon.asset")) | |
|
private |
MAXON_METHOD const Url& GetUrl | ( | ) | const |
|
static |
Creates a new FileAsset for the given Url. The returned file asset doesn't belong to a repository, you have to store it afterwards at a repository. This will change the Url to a Url within the repository.
[in] | url | The Url of the file (or directory) which shall be made an asset. |