// 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
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using WixToolset.Data;
using Wix = WixToolset.Data.Serialize;
///
/// The WiX Toolset harvester core.
///
public interface IHarvesterCore
{
///
/// Gets whether the harvester core encountered an error while processing.
///
/// Flag if core encountered an error during processing.
bool EncounteredError { get; }
///
/// Gets or sets the value of the extension argument passed to heat.
///
/// The extension argument.
string ExtensionArgument { get; set; }
///
/// Gets or sets the value of the root directory that is being harvested.
///
/// The root directory being harvested.
string RootDirectory { get; set; }
///
/// Create an identifier based on passed file name
///
/// File name to generate identifer from
///
string CreateIdentifierFromFilename(string filename);
///
/// Generate an identifier by hashing data from the row.
///
/// Three letter or less prefix for generated row identifier.
/// Information to hash.
/// The generated identifier.
string GenerateIdentifier(string prefix, params string[] args);
///
/// Sends a message to the message delegate if there is one.
///
/// Message event arguments.
void OnMessage(MessageEventArgs mea);
///
/// Resolves a file's path if the Wix.File.Source value starts with "SourceDir\".
///
/// The Wix.File.Source value with "SourceDir\".
/// The full path of the file.
string ResolveFilePath(string fileSource);
}
}