Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
OutputDeviceConsole.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Misc/OutputDevice.h"
7#include "Containers/UnrealString.h"
8
9/**
10 * This class servers as the base class for console window output.
11 */
13 : public FOutputDevice
14{
15public:
16
17 /**
18 * Shows or hides the console window.
19 *
20 * @param ShowWindow Whether to show (true) or hide (false) the console window.
21 */
22 virtual void Show( bool ShowWindow )=0;
23
24 /**
25 * Returns whether console is currently shown or not.
26 *
27 * @return true if console is shown, false otherwise.
28 */
29 virtual bool IsShown()=0;
30
31 /**
32 * Returns whether the application is already attached to a console window.
33 *
34 * @return true if console is attached, false otherwise.
35 */
36 virtual bool IsAttached()
37 {
38 return false;
39 }
40
41 /**
42 * Sets the INI file name to write console settings to.
43 *
44 * @param InFilename The INI file name to set.
45 */
46 void SetIniFilename(const TCHAR* InFilename)
47 {
48 IniFilename = InFilename;
49 }
50
51protected:
52
53 /** Ini file name to write console settings to. */
55};
virtual void Show(bool ShowWindow)=0
virtual bool IsShown()=0
void SetIniFilename(const TCHAR *InFilename)