2023-03-13 17:23:05 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "IAudioParameterInterfaceRegistry.h"
|
2023-04-04 19:14:26 -04:00
|
|
|
#include "Interfaces/MetasoundFrontendInterfaceRegistry.h"
|
2023-03-13 17:23:05 -04:00
|
|
|
#include "MetasoundFrontendDocument.h"
|
|
|
|
|
#include "MetasoundFrontendTransform.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Metasound::Engine
|
|
|
|
|
{
|
2023-04-04 19:14:26 -04:00
|
|
|
// Entry for registered interface.
|
|
|
|
|
class FInterfaceRegistryEntry : public Frontend::IInterfaceRegistryEntry
|
2023-03-13 17:23:05 -04:00
|
|
|
{
|
2023-04-04 19:14:26 -04:00
|
|
|
public:
|
2024-05-28 18:51:03 -04:00
|
|
|
FInterfaceRegistryEntry(FMetasoundFrontendInterface&& InInterface, FName InRouterName = IDataReference::RouterName, bool bInIsDeprecated = false);
|
|
|
|
|
FInterfaceRegistryEntry(const FMetasoundFrontendInterface& InInterface, FName InRouterName = IDataReference::RouterName, bool bInIsDeprecated = false);
|
|
|
|
|
FInterfaceRegistryEntry(const FMetasoundFrontendInterface& InInterface, TUniquePtr<Frontend::IDocumentTransform>&& InUpdateTransform, FName InRouterName = IDataReference::RouterName, bool bInIsDeprecated = false);
|
2023-03-13 17:23:05 -04:00
|
|
|
|
2023-04-04 19:14:26 -04:00
|
|
|
virtual FName GetRouterName() const override;
|
|
|
|
|
virtual const FMetasoundFrontendInterface& GetInterface() const override;
|
2024-05-28 18:51:03 -04:00
|
|
|
virtual bool IsDeprecated() const override;
|
2023-04-04 19:14:26 -04:00
|
|
|
virtual bool UpdateRootGraphInterface(Frontend::FDocumentHandle InDocument) const override;
|
2023-03-13 17:23:05 -04:00
|
|
|
|
2023-04-04 19:14:26 -04:00
|
|
|
private:
|
|
|
|
|
FMetasoundFrontendInterface Interface;
|
|
|
|
|
TUniquePtr<Frontend::IDocumentTransform> UpdateTransform;
|
|
|
|
|
FName RouterName;
|
2024-05-28 18:51:03 -04:00
|
|
|
bool bIsDeprecated = false;
|
2023-04-04 19:14:26 -04:00
|
|
|
};
|
2023-03-13 17:23:05 -04:00
|
|
|
|
|
|
|
|
void RegisterInterfaces();
|
|
|
|
|
} // namespace Metasound::Engine
|