// 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.Harvesters.Extensibility { using System; using WixToolset.Harvesters.Data; /// /// An extension for the WiX Toolset Harvester application. /// public abstract class BaseHeatExtension : IHeatExtension { /// /// Gets or sets the heat core for the extension. /// /// The heat core for the extension. public IHeatCore Core { get; set; } /// /// Gets the supported command line types for this extension. /// /// The supported command line types for this extension. public virtual HeatCommandLineOption[] CommandLineTypes { get { return null; } } /// /// Parse the command line options for this extension. /// /// The active harvester type. /// The option arguments. public virtual void ParseOptions(string type, string[] args) { } /// /// Determines if the index refers to an argument. /// /// /// /// public static bool IsValidArg(string[] args, int index) { if (args.Length <= index || String.IsNullOrEmpty(args[index]) || '/' == args[index][0] || '-' == args[index][0]) { return false; } else { return true; } } } }