DatasmithLogger.h
1 // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
2 
3 #pragma once
4 
5 #include "CoreTypes.h"
6 
7 class FDatasmithLoggerImpl;
8 
9 /**
10 * Logger that holds the errors during the export process.
11 * The user plugin should display the list of errors at the end of the export.
12 */
13 class DATASMITHEXPORTER_API FDatasmithLogger
14 {
15 public:
17  virtual ~FDatasmithLogger();
18 
19  void AddGeneralError(const TCHAR* InError);
20  int32 GetGeneralErrorsCount();
21  const TCHAR* GetGeneralError(int32 Index) const;
22  void ResetGeneralErrors();
23 
24  void AddTextureError(const TCHAR* InError);
25  int32 GetTextureErrorsCount();
26  const TCHAR* GetTextureError(int32 Index) const;
27  void ResetTextureErrors();
28 
29  void AddMissingAssetError(const TCHAR* InError);
30  int32 GetMissingAssetErrorsCount();
31  const TCHAR* GetMissingAssetError(int32 Index) const;
32  void ResetMissingAssetErrors();
33 
34 protected:
35  FDatasmithLoggerImpl* Impl;
36 
37 };
FDatasmithLogger
Logger that holds the errors during the export process.
Definition: DatasmithLogger.h:13