You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902 #ROBOMERGE-BOT: (v613-10869866) [CL 10870584 by ryan durand in Main branch]
44 lines
697 B
C++
44 lines
697 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DatasmithFacadeLog.h"
|
|
|
|
// Datasmith SDK.
|
|
#include "Misc/FileHelper.h"
|
|
|
|
|
|
FDatasmithFacadeLog::FDatasmithFacadeLog() :
|
|
LineIndentation(0)
|
|
{
|
|
}
|
|
|
|
void FDatasmithFacadeLog::AddLine(
|
|
const TCHAR* InLine
|
|
)
|
|
{
|
|
Log.Append(FString::ChrN(LineIndentation, TEXT('\t')));
|
|
Log.Append(InLine);
|
|
Log.AppendChar(TEXT('\n'));
|
|
}
|
|
|
|
void FDatasmithFacadeLog::MoreIndentation()
|
|
{
|
|
LineIndentation += 1;
|
|
}
|
|
|
|
void FDatasmithFacadeLog::LessIndentation()
|
|
{
|
|
LineIndentation -= 1;
|
|
|
|
if (LineIndentation < 0)
|
|
{
|
|
LineIndentation = 0;
|
|
}
|
|
}
|
|
|
|
void FDatasmithFacadeLog::WriteFile(
|
|
const TCHAR* InFilePath
|
|
) const
|
|
{
|
|
FFileHelper::SaveStringToFile(Log, InFilePath);
|
|
}
|