Files
UnrealEngineUWP/Engine/Source/Developer/Datasmith/DatasmithFacade/Private/DatasmithFacadeLog.cpp
ryan durand 471d972e62 Updating copyright for Engine Developer.
#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]
2019-12-26 15:32:37 -05:00

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);
}