Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
OutputDeviceArchiveWrapper.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
"Logging/LogVerbosity.h"
7
#
include
"Misc/AssertionMacros.h"
8
#
include
"Misc/OutputDevice.h"
9
10
class
FArchive
;
11
12
/**
13
* Output device wrapping any kind of FArchive. Note: Works in any build configuration.
14
*/
15
class
FOutputDeviceArchiveWrapper
:
public
FOutputDevice
16
{
17
public
:
18
/**
19
* Constructor, initializing member variables.
20
*
21
* @param InArchive Archive to use, must not be nullptr. Does not take ownership of the archive, clean up or delete the archive independently!
22
*/
23
FOutputDeviceArchiveWrapper
(
FArchive
* InArchive)
24
:
LogAr
(InArchive)
25
{
26
check
(InArchive);
27
}
28
29
// FOutputDevice interface
30
virtual
void
Flush
()
override
;
31
virtual
void
Serialize
(
const
TCHAR* Data,
ELogVerbosity
::
Type
Verbosity,
const
class
FName
& Category)
override
;
32
// End of FOutputDevice interface
33
34
private
:
35
FArchive
*
LogAr
;
36
};
check
#define check(expr)
Definition
AssertionMacros.h:305
FArchive
Definition
Archive.h:1125
FName
Definition
NameTypes.h:601
FOutputDeviceArchiveWrapper
Definition
OutputDeviceArchiveWrapper.h:16
FOutputDeviceArchiveWrapper::LogAr
FArchive * LogAr
Definition
OutputDeviceArchiveWrapper.h:35
FOutputDeviceArchiveWrapper::Flush
virtual void Flush() override
FOutputDeviceArchiveWrapper::FOutputDeviceArchiveWrapper
FOutputDeviceArchiveWrapper(FArchive *InArchive)
Definition
OutputDeviceArchiveWrapper.h:23
FOutputDeviceArchiveWrapper::Serialize
virtual void Serialize(const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category) override
FOutputDevice
Definition
OutputDevice.h:130
ELogVerbosity
Definition
AssertionMacros.h:31
ELogVerbosity::Type
Type
Definition
LogVerbosity.h:17
Downloads
ArkServerAPI_NEW
ASA
AsaApi
AsaApi
Core
Public
API
UE
Misc
OutputDeviceArchiveWrapper.h
Generated by
1.10.0