2021-01-13 10:48:59 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "MetasoundFrontendController.h"
|
|
|
|
|
|
|
|
|
|
#include "MetasoundFrontendInvalidController.h"
|
|
|
|
|
#include "MetasoundFrontendStandardController.h"
|
|
|
|
|
|
|
|
|
|
namespace Metasound
|
|
|
|
|
{
|
|
|
|
|
namespace Frontend
|
|
|
|
|
{
|
|
|
|
|
FOutputHandle IOutputController::GetInvalidHandle()
|
|
|
|
|
{
|
|
|
|
|
return FInvalidOutputController::GetInvalid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FInputHandle IInputController::GetInvalidHandle()
|
|
|
|
|
{
|
|
|
|
|
return FInvalidInputController::GetInvalid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FNodeHandle INodeController::GetInvalidHandle()
|
|
|
|
|
{
|
|
|
|
|
return FInvalidNodeController::GetInvalid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FGraphHandle IGraphController::GetInvalidHandle()
|
|
|
|
|
{
|
|
|
|
|
return FInvalidGraphController::GetInvalid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FDocumentHandle IDocumentController::GetInvalidHandle()
|
|
|
|
|
{
|
|
|
|
|
return FInvalidDocumentController::GetInvalid();
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-10 19:52:56 -04:00
|
|
|
FDocumentHandle IDocumentController::CreateDocumentHandle(FDocumentAccessPtr InDocument)
|
2021-01-13 10:48:59 -04:00
|
|
|
{
|
|
|
|
|
// Create using standard document controller.
|
|
|
|
|
return FDocumentController::CreateDocumentHandle(InDocument);
|
|
|
|
|
}
|
2021-01-13 19:18:22 -04:00
|
|
|
|
2021-05-20 19:33:21 -04:00
|
|
|
FDocumentHandle IDocumentController::CreateDocumentHandle(FMetasoundFrontendDocument& InDocument)
|
|
|
|
|
{
|
|
|
|
|
return CreateDocumentHandle(MakeAccessPtr<FDocumentAccessPtr>(InDocument.AccessPoint, InDocument));
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-10 19:52:56 -04:00
|
|
|
FConstDocumentHandle IDocumentController::CreateDocumentHandle(FConstDocumentAccessPtr InDocument)
|
2021-01-13 19:18:22 -04:00
|
|
|
{
|
|
|
|
|
// Create using standard document controller.
|
2021-05-10 19:52:56 -04:00
|
|
|
return FDocumentController::CreateDocumentHandle(ConstCastAccessPtr<FDocumentAccessPtr>(InDocument));
|
2021-01-13 19:18:22 -04:00
|
|
|
}
|
2021-05-20 19:33:21 -04:00
|
|
|
|
|
|
|
|
FConstDocumentHandle IDocumentController::CreateDocumentHandle(const FMetasoundFrontendDocument& InDocument)
|
|
|
|
|
{
|
|
|
|
|
return CreateDocumentHandle(MakeAccessPtr<FConstDocumentAccessPtr>(InDocument.AccessPoint, InDocument));
|
|
|
|
|
}
|
2021-01-13 10:48:59 -04:00
|
|
|
}
|
|
|
|
|
}
|