Class AssetDataSource

Inheritance Relationships

Derived Types

Class Documentation

class AssetDataSource

Defines a base data source for an Asset, attributing a mime type and providing functionality for uploading the data.

Subclassed by csp::systems::BufferAssetDataSource, csp::systems::FileAssetDataSource

Public Functions

virtual const csp::common::String &GetMimeType() const = 0

Gets the mime type of this data source.

Returns

returns a string representing the mime type set for this data source.

virtual void SetMimeType(const csp::common::String &InMimeType) = 0

Sets the mime type for this data source.

Parameters

InMimeType – The mime type to set.

virtual void SetUploadContent(csp::web::WebClient *InWebClient, csp::web::HttpPayload *InPayload, const csp::systems::Asset &InAsset) const = 0

Protected Functions

virtual ~AssetDataSource() = default