Files
UnrealEngineUWP/Engine/Source/Developer/DerivedDataCache/Private/FileBackedDerivedDataBackend.h
aurel cordonnier a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00

41 lines
926 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "DerivedDataBackendInterface.h"
/**
* A file backed backend. This is used for local caching of data where more flexibility is needed than loose files.
**/
class FFileBackedDerivedDataBackend : public FDerivedDataBackendInterface
{
public:
virtual FString GetDisplayName() const override { return FString(TEXT("File")); }
/**
* Save the cache to disk
* @param Filename Filename to save
* @return true if file was saved successfully
*/
virtual bool SaveCache(const TCHAR* Filename) = 0;
/**
* Load the cache from disk
* @param Filename Filename to load
* @return true if file was loaded successfully
*/
virtual bool LoadCache(const TCHAR* Filename) = 0;
/**
* Disables use of this cache and allows the underlying implementation to free up memory
*/
virtual void Disable() = 0;
private:
};