// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset.Dtf.WindowsInstaller
{
using System.Diagnostics.CodeAnalysis;
///
/// Represents a per-drive disk space cost for an installation.
///
[SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")]
public struct InstallCost
{
private string driveName;
private long cost;
private long tempCost;
///
/// Creates a new InstallCost object.
///
/// name of the drive this cost data applies to
/// installation cost on this drive, as a number of bytes
/// temporary disk space required on this drive, as a number of bytes
internal InstallCost(string driveName, long cost, long tempCost)
{
this.driveName = driveName;
this.cost = cost;
this.tempCost = tempCost;
}
///
/// The name of the drive this cost data applies to.
///
public string DriveName
{
get
{
return this.driveName;
}
}
///
/// The installation cost on this drive, as a number of bytes.
///
public long Cost
{
get
{
return this.cost;
}
}
///
/// The temporary disk space required on this drive, as a number of bytes.
///
///
/// This temporary space requirement is space needed only for the duration
/// of the installation, over the final footprint on disk.
///
public long TempCost
{
get
{
return this.tempCost;
}
}
}
}