Files
UnrealEngineUWP/Engine/Source/Runtime/RuntimeAssetCache/Private/RuntimeAssetCacheFilesystemBackend.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

36 lines
1.1 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Containers/UnrealString.h"
#include "UObject/NameTypes.h"
#include "RuntimeAssetCacheBackend.h"
class FArchive;
class FRuntimeAssetCacheBucket;
/**
* File system implementation of runtime asset cache backend.
*/
class FRuntimeAssetCacheFilesystemBackend : public FRuntimeAssetCacheBackend
{
public:
FRuntimeAssetCacheFilesystemBackend();
/** FRuntimeAssetCacheBackend interface implementation. */
virtual bool RemoveCacheEntry(FName Bucket, const TCHAR* CacheKey) override;
virtual bool ClearCache() override;
virtual bool ClearCache(FName Bucket) override;
virtual FRuntimeAssetCacheBucket* PreLoadBucket(FName BucketName, int32 BucketSize) override;
protected:
virtual FArchive* CreateReadArchive(FName Bucket, const TCHAR* CacheKey) override;
virtual FArchive* CreateWriteArchive(FName Bucket, const TCHAR* CacheKey) override;
/** End of FRuntimeAssetCacheBackend interface implementation. */
private:
/** File system path to runtime asset cache. */
FString PathToRAC;
};