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
10class FArchive;
11
12/**
13* Output device wrapping any kind of FArchive. Note: Works in any build configuration.
14*/
16{
17public:
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 */
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
34private:
36};
#define check(expr)
virtual void Flush() override
FOutputDeviceArchiveWrapper(FArchive *InArchive)
virtual void Serialize(const TCHAR *Data, ELogVerbosity::Type Verbosity, const class FName &Category) override