Files
UnrealEngineUWP/Engine/Plugins/Experimental/Mutable/Source/MutableTools/Public/MuT/NodeString.h
bryan sefcik 9f221af671 Ran IWYU on Mutable plugin
#jira
#preflight 6337f41a5c2225fe5fd4eddf

[CL 22293097 by bryan sefcik in ue5-main branch]
2022-10-02 10:56:02 -04:00

69 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/Node.h"
namespace mu
{
// Forward definitions
class NodeString;
typedef Ptr<NodeString> NodeStringPtr;
typedef Ptr<const NodeString> NodeStringPtrConst;
//! %Base class of any node that outputs a string value.
//! \ingroup model
class MUTABLETOOLS_API NodeString : public Node
{
public:
// Possible subclasses
enum class EType : uint8
{
Constant = 0,
Parameter = 1,
None
};
//-----------------------------------------------------------------------------------------
// Life cycle
//-----------------------------------------------------------------------------------------
static void Serialise( const NodeString* pNode, OutputArchive& arch );
static NodeStringPtr StaticUnserialise( InputArchive& arch );
//-----------------------------------------------------------------------------------------
// Node Interface
//-----------------------------------------------------------------------------------------
const NODE_TYPE* GetType() const override;
static const NODE_TYPE* GetStaticType();
//-----------------------------------------------------------------------------------------
// Interface pattern
//-----------------------------------------------------------------------------------------
class Private;
protected:
//! Forbidden. Manage with the Ptr<> template.
inline ~NodeString() {}
//!
EType Type = EType::None;
};
}