UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWindowsConsoleOutputDevice2 Class Referencefinal

#include <WindowsConsoleOutputDevice2.h>

+ Inheritance diagram for FWindowsConsoleOutputDevice2:

Classes

class  FConsoleWindow
 

Public Member Functions

APPLICATIONCORE_API FWindowsConsoleOutputDevice2 ()
 
APPLICATIONCORE_API ~FWindowsConsoleOutputDevice2 ()
 
virtual APPLICATIONCORE_API void Show (bool ShowWindow)
 
virtual APPLICATIONCORE_API bool IsShown ()
 
virtual APPLICATIONCORE_API bool IsAttached ()
 
virtual APPLICATIONCORE_API bool CanBeUsedOnAnyThread () const override
 
virtual APPLICATIONCORE_API void Serialize (const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category, const double Time) override
 
virtual APPLICATIONCORE_API void Serialize (const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category) override
 
APPLICATIONCORE_API void SetColor (const TCHAR *Color)
 
bool GetPreviousCommand (FString &OutCommand)
 
bool GetNextCommand (FString &OutCommand)
 
bool GetLastCommand (FString &OutCommand)
 
void AddCommand (const FString &InCommand)
 
- Public Member Functions inherited from FOutputDeviceConsole
void SetIniFilename (const TCHAR *InFilename)
 
- Public Member Functions inherited from FOutputDevice
CORE_API FOutputDevice ()
 
CORE_API FOutputDevice (FOutputDevice &&)
 
CORE_API FOutputDevice (const FOutputDevice &)
 
CORE_API FOutputDeviceoperator= (FOutputDevice &&)
 
CORE_API FOutputDeviceoperator= (const FOutputDevice &)
 
virtual CORE_API ~FOutputDevice ()
 
virtual void Serialize (const TCHAR *V, ELogVerbosity::Type Verbosity, const FName &Category)=0
 
virtual void Serialize (const TCHAR *V, ELogVerbosity::Type Verbosity, const FName &Category, const double Time)
 
virtual CORE_API void SerializeRecord (const UE::FLogRecord &Record)
 
virtual void Flush ()
 
virtual void TearDown ()
 
void SetSuppressEventTag (bool bInSuppressEventTag)
 
UE_FORCEINLINE_HINT bool GetSuppressEventTag () const
 
void SetAutoEmitLineTerminator (bool bInAutoEmitLineTerminator)
 
UE_FORCEINLINE_HINT bool GetAutoEmitLineTerminator () const
 
virtual void Dump (class FArchive &Ar)
 
virtual bool IsMemoryOnly () const
 
virtual bool CanBeUsedOnMultipleThreads () const
 
virtual bool CanBeUsedOnPanicThread () const
 
CORE_API void Log (const TCHAR *S)
 
CORE_API void Log (ELogVerbosity::Type Verbosity, const TCHAR *S)
 
CORE_API void Log (const FName &Category, ELogVerbosity::Type Verbosity, const TCHAR *Str)
 
CORE_API void Log (const FString &S)
 
CORE_API void Log (const FText &S)
 
CORE_API void Log (ELogVerbosity::Type Verbosity, const FString &S)
 
CORE_API void Log (const FName &Category, ELogVerbosity::Type Verbosity, const FString &S)
 
template<typename FmtType >
void Logf (const FmtType &Fmt)
 
template<typename FmtType , typename... Types>
void Logf (const FmtType &Fmt, Types... Args)
 
template<typename FmtType , typename... Types>
void Logf (ELogVerbosity::Type Verbosity, const FmtType &Fmt, Types... Args)
 
template<typename FmtType , typename... Types>
void CategorizedLogf (const FName &Category, ELogVerbosity::Type Verbosity, const FmtType &Fmt, Types... Args)
 

Additional Inherited Members

- Protected Attributes inherited from FOutputDeviceConsole
FString IniFilename
 
- Protected Attributes inherited from FOutputDevice
bool bSuppressEventTag
 
bool bAutoEmitLineTerminator
 

Detailed Description

Windows implementation of console log window, utilizing the Win32 console API

Constructor & Destructor Documentation

◆ FWindowsConsoleOutputDevice2()

FWindowsConsoleOutputDevice2::FWindowsConsoleOutputDevice2 ( )

Constructor, setting console control handler.

◆ ~FWindowsConsoleOutputDevice2()

FWindowsConsoleOutputDevice2::~FWindowsConsoleOutputDevice2 ( )

Member Function Documentation

◆ AddCommand()

void FWindowsConsoleOutputDevice2::AddCommand ( const FString &  InCommand)

◆ CanBeUsedOnAnyThread()

bool FWindowsConsoleOutputDevice2::CanBeUsedOnAnyThread ( ) const
overridevirtual
Returns
whether this output device can be used on any thread.

Reimplemented from FOutputDevice.

◆ GetLastCommand()

bool FWindowsConsoleOutputDevice2::GetLastCommand ( FString &  OutCommand)

◆ GetNextCommand()

bool FWindowsConsoleOutputDevice2::GetNextCommand ( FString &  OutCommand)

◆ GetPreviousCommand()

bool FWindowsConsoleOutputDevice2::GetPreviousCommand ( FString &  OutCommand)

◆ IsAttached()

bool FWindowsConsoleOutputDevice2::IsAttached ( )
virtual

Returns whether the application is already attached to a console window.

Returns
true if console is attached, false otherwise.

Reimplemented from FOutputDeviceConsole.

◆ IsShown()

bool FWindowsConsoleOutputDevice2::IsShown ( )
virtual

Returns whether console is currently shown or not

Returns
true if console is shown, false otherwise

Implements FOutputDeviceConsole.

◆ Serialize() [1/2]

void FWindowsConsoleOutputDevice2::Serialize ( const TCHAR Data,
ELogVerbosity::Type  Verbosity,
const class FName Category 
)
overridevirtual

◆ Serialize() [2/2]

void FWindowsConsoleOutputDevice2::Serialize ( const TCHAR Data,
ELogVerbosity::Type  Verbosity,
const class FName Category,
const double  Time 
)
overridevirtual

Displays text on the console and scrolls if necessary.

Parameters
DataText to display
EventEvent type, used for filtering/ suppression

◆ SetColor()

void FWindowsConsoleOutputDevice2::SetColor ( const TCHAR Color)

◆ Show()

void FWindowsConsoleOutputDevice2::Show ( bool  ShowWindow)
virtual

Shows or hides the console window.

Parameters
ShowWindowWhether to show (true) or hide (false) the console window.

Implements FOutputDeviceConsole.


The documentation for this class was generated from the following files: