NUTUtil

General utility functions

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

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

Include

#include "NUTUtil.h"

Syntax

struct NUTUtil

Remarks

General utility functions

Functions

Name Description

Public function Static

UNetDriver &...

 

GetActiveNetDriver

(
    UWorld* InWorld
)

Returns the currently active net driver (either pending or one for current level)

Public function Static

FString

 

GetPackageModule

(
    UPackage* Package,
    bool bVerifyModule
)

Get a module name from any UPackage - if it has one

Public function Static

UWorld *

 

GetPrimaryWorld()

Public function Static

void

 

GetUnitTestClassDefList

(
    TArray< UUnitTest* >& OutUnit...
)

Outputs a full list of valid unit test class defaults, representing all unit tests which can be executed

Public function Static

bool

 

ParseEnum

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

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

Public function Static

bool

 

ParseValue

(
    const TCHAR* Stream,
    const TCHAR* Match,
    FString& Value,
    bool bShouldStopOnComma
)

Overridden parse function, for supporting escaped quotes

Public function Static

bool

 

ParseValue

(
    const TCHAR* Stream,
    const TCHAR* Match,
    TCHAR* Value,
    int32 MaxLen,
    bool bShouldStopOnComma
)

Overridden parse function, for supporting escaped quotes, e.g: -UnitTestServerParms="-LogCmds=\"LogNet all""

Public function Static

void

 

SortUnitTestClassDefList

(
    TArray< UUnitTest* >& InUnitT...
)

Takes a list of unit test class defaults, and reorders them in a more readable way, based on type and implementation date

Public function Static

void

 

SpecialLog

(
    FOutputDeviceFile* Ar,
    const TCHAR* SpecialCategory,
    const TCHAR* Data,
    ELogVerbosity::Type Verbosity,
    const FName& Category
)

Puts out a log message to FOutputDeviceFile, with a special category prefix added.

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