Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Private/MetasoundFrontendDocumentVersioning.h
Aaron McLeran 5f08d51e97 Fix for static analysis include cycle
#fyi Rob.Gay
#jira none
#rb none
#preflight none

[CL 21463121 by Aaron McLeran in ue5-main branch]
2022-08-19 15:42:08 -04:00

33 lines
781 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/UnrealString.h"
#include "MetasoundFrontendController.h"
#include "MetasoundFrontendTransform.h"
#include "MetasoundFrontendDocument.h"
#include "UObject/NameTypes.h"
namespace Metasound
{
namespace Frontend
{
/** Base class for versioning a document. */
class METASOUNDFRONTEND_API FVersionDocument : public IDocumentTransform
{
const FName Name;
const FString& Path;
public:
static FMetasoundFrontendVersionNumber GetMaxVersion()
{
return FMetasoundFrontendVersionNumber { 1, 10 };
}
FVersionDocument(FName InName, const FString& InPath);
bool Transform(FDocumentHandle InDocument) const override;
};
} // namespace Frontend
} // namespace Metasound