/// <summary> /// Gets the argument string corresponding with a configuration property /// named <paramref name="propName" /> with value <paramref name="propValue" />. /// An ignore mask can be used to eliminate some arguments from the search. /// </summary> /// <param name="propName">The name of the configuration property.</param> /// <param name="propValue">The value of the configuration property.</param> /// <param name="useIgnoreGroup">Specify any groups that needs to be ignored.</param> /// <returns> /// The argument string corresponding with a configuration property /// named <paramref name="propName" /> with value <paramref name="propValue" />, /// or <see langword="null" /> if no corresponding argument exists. /// </returns> public string GetArgument(string propName, string propValue, ArgGroup useIgnoreGroup) { VcArgument arg = (VcArgument)_htArgs [propName]; if (arg == null) { return(null); } if (arg.Group != ArgGroup.Unassigned && (arg.Group & useIgnoreGroup) != 0) { return(null); } return(arg.MapValue(propValue)); }
/// <summary> /// Gets the argument string corresponding with a configuration property /// named <paramref name="propName" /> with value <paramref name="propValue" />. /// An ignore mask can be used to eliminate some arguments from the search. /// </summary> /// <param name="propName">The name of the configuration property.</param> /// <param name="propValue">The value of the configuration property.</param> /// <param name="useIgnoreGroup">Specify any groups that needs to be ignored.</param> /// <returns> /// The argument string corresponding with a configuration property /// named <paramref name="propName" /> with value <paramref name="propValue" />, /// or <see langword="null" /> if no corresponding argument exists. /// </returns> public string GetArgument(string propName, string propValue, ArgGroup useIgnoreGroup) { VcArgument arg = (VcArgument) _htArgs [propName]; if (arg == null) { return null; } if (arg.Group != ArgGroup.Unassigned && (arg.Group & useIgnoreGroup) != 0) { return null; } return arg.MapValue(propValue); }
public void AddEnum(ArgGroup group, string propName, string argName, params string[] values) { _htArgs [propName] = new VcEnumArgument(group, argName, values); }
public void AddQuotedLinkerString(ArgGroup group, string propName, string argName, bool ignoreEmptyValue) { _htArgs [propName] = new QuotedLinkerStringArgument(group, argName, ignoreEmptyValue); }
internal VcEnumArgument(ArgGroup group, string name, string[] values): base(group, name) { _values = values; }
internal VcBoolArgument(ArgGroup group, string name): this(group, name, "true") { }
internal QuotedLinkerStringArgument(ArgGroup group, string name): this(group, name, false) { }
internal VcStringArgument(ArgGroup group, string name, bool ignoreEmptyValue): base(group, name) { _ignoreEmptyValue = ignoreEmptyValue; }
internal QuotedLinkerStringArgument(ArgGroup group, string name, bool ignoreEmptyValue) : base(group, name, ignoreEmptyValue) { }
internal QuotedLinkerStringArgument(ArgGroup group, string name) : this(group, name, false) { }
internal VcStringArgument(ArgGroup group, string name, bool ignoreEmptyValue) : base(group, name) { _ignoreEmptyValue = ignoreEmptyValue; }
internal VcStringArgument(ArgGroup group, string name) : this(group, name, false) { }
protected VcArgument(ArgGroup group, string name) { _name = name; _group = group; }
internal VcBoolArgument(ArgGroup group, string name) : this(group, name, "true") { }
internal VcStringArgument(ArgGroup group, string name): this(group, name, false) { }
internal VcBoolArgument(ArgGroup group, string name, string match) : base(group, name) { _match = match; }
public void AddString(ArgGroup group, string propName, string argName) { _htArgs [propName] = new VcStringArgument(group, argName); }
internal VcEnumArgument(ArgGroup group, string name, string[] values) : base(group, name) { _values = values; }
internal QuotedLinkerStringArgument(ArgGroup group, string name, bool ignoreEmptyValue): base(group, name, ignoreEmptyValue) { }
public void AddLinkerString(ArgGroup group, string propName, string argName) { _htArgs [propName] = new LinkerStringArgument(group, argName); }
internal VcBoolArgument(ArgGroup group, string name, string match): base(group, name) { _match = match; }
public void AddLinkerString(ArgGroup group, string propName, string argName, bool ignoreEmptyValue) { _htArgs [propName] = new LinkerStringArgument(group, argName, ignoreEmptyValue); }
public void AddQuotedLinkerString(ArgGroup group, string propName, string argName) { _htArgs [propName] = new QuotedLinkerStringArgument(group, argName); }
public void AddBool(ArgGroup group, string propName, string argName, string match) { _htArgs [propName] = new VcBoolArgument(group, argName, match); }