Files
UnrealEngineUWP/Engine/Source/Programs/UnrealHeaderTool/Private/ParserClass.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

62 lines
1.4 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Class.h"
class UField;
struct EEnforceInterfacePrefix
{
enum Type
{
None,
I,
U
};
};
class FClasses;
class FClass : public UClass
{
public:
FClass();
/**
* Returns the name of the given class with a valid prefix.
*
* @param InClass Class used to create a valid class name with prefix
*/
FString GetNameWithPrefix(EEnforceInterfacePrefix::Type EnforceInterfacePrefix = EEnforceInterfacePrefix::None) const;
/**
* Returns the super class of this class, or NULL if there is no superclass.
*
* @return The super class of this class.
*/
FClass* GetSuperClass() const;
/**
* Returns the 'within' class of this class.
*
* @return The 'within' class of this class.
*/
FClass* GetClassWithin() const;
TArray<FClass*> GetInterfaceTypes() const;
void GetHideCategories(TArray<FString>& OutHideCategories) const;
void GetShowCategories(TArray<FString>& OutShowCategories) const;
/** Helper function that checks if the field is a dynamic type (can be constructed post-startup) */
static bool IsDynamic(const UField* Field);
/** Helper function that checks if the field is belongs to a dynamic type */
static bool IsOwnedByDynamicType(const UField* Field);
/** Helper function to get the source replaced package name */
static FString GetTypePackageName(const UField* Field);
};