Files
UnrealEngineUWP/Engine/Source/Developer/DerivedDataCache/Private/FileBackedDerivedDataBackend.h
devin doucette 394fd0642b DDC: Made the backend namespaces consistent in advance of introducing ILegacyCacheStore
#rb Zousar.Shaker
#rnx
#preflight 61e04880250b9537f77549d7

#ROBOMERGE-AUTHOR: devin.doucette
#ROBOMERGE-SOURCE: CL 18597466 in //UE5/Release-5.0/... via CL 18597469 via CL 18597485
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18597488 by devin doucette in ue5-main branch]
2022-01-13 11:09:29 -05:00

37 lines
852 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "DerivedDataBackendInterface.h"
namespace UE::DerivedData
{
/**
* 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:
/**
* 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;
};
} // UE::DerivedData