NUTUtil::ParseEnum

Parses the value of specific enum, from the specified commandline stream

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtil.h

Include

#include "NUTUtil.h"

Source

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/NUTUtil.cpp

Syntax

static bool ParseEnum
(
    const TCHAR * Stream,
    const TCHAR * Match,
    const TCHAR * EnumName,
    uint32 & Value
)

Remarks

Parses the value of specific enum, from the specified commandline stream

Returns

Whether or not an enum value was parsed successfully

Parameters

Parameter

Description

Stream

The stream to parse from (typically FCommandline::Get())

Match

The commandline option to match as the key specifying the value

EnumName

The name of the enum type

Value

Outputs the integer value of the enum, as specified on the commandline

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss