// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnrealBuildTool { /// /// Information about a PCH instance /// class PrecompiledHeaderInstance { /// /// The file to include to use this shared PCH /// public FileItem HeaderFile; /// /// Whether optimization is enabled /// public bool bOptimizeCode; /// /// Whether to enable RTTI /// public bool bUseRTTI; /// /// Whether to enable exceptions /// public bool bEnableExceptions; /// /// The output files for the shared PCH /// public CPPOutput Output; /// /// Constructor /// public PrecompiledHeaderInstance(FileItem HeaderFile, bool bOptimizeCode, bool bUseRTTI, bool bEnableExceptions, CPPOutput Output) { this.HeaderFile = HeaderFile; this.bOptimizeCode = bOptimizeCode; this.bUseRTTI = bUseRTTI; this.bEnableExceptions = bEnableExceptions; this.Output = Output; } /// /// Return a string representation of this object for debugging /// /// String representation of the object public override string ToString() { return String.Format("{0} (Optimized={1}, RTTI={2}, Exceptions={3})", HeaderFile.Location.GetFileName(), bOptimizeCode, bUseRTTI, bEnableExceptions); } } }