Exemple #1
0
        /// <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));
        }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 public void AddEnum(ArgGroup group, string propName, string argName, params string[] values)
 {
     _htArgs [propName] = new VcEnumArgument(group, argName, values);
 }
Exemple #4
0
 public void AddQuotedLinkerString(ArgGroup group, string propName, string argName, bool ignoreEmptyValue) {
     _htArgs [propName] = new QuotedLinkerStringArgument(group, argName, ignoreEmptyValue);
 }
Exemple #5
0
 internal VcEnumArgument(ArgGroup group, string name, string[] values): base(group, name) {
     _values = values;
 }
Exemple #6
0
 internal VcBoolArgument(ArgGroup group, string name): this(group, name, "true") {
 }
Exemple #7
0
 internal QuotedLinkerStringArgument(ArgGroup group, string name): this(group, name, false) {
 }
Exemple #8
0
 internal VcStringArgument(ArgGroup group, string name, bool ignoreEmptyValue): base(group, name) {
     _ignoreEmptyValue = ignoreEmptyValue;
 }
Exemple #9
0
 internal QuotedLinkerStringArgument(ArgGroup group, string name, bool ignoreEmptyValue) : base(group, name, ignoreEmptyValue)
 {
 }
Exemple #10
0
 internal QuotedLinkerStringArgument(ArgGroup group, string name) : this(group, name, false)
 {
 }
Exemple #11
0
 internal VcStringArgument(ArgGroup group, string name, bool ignoreEmptyValue) : base(group, name)
 {
     _ignoreEmptyValue = ignoreEmptyValue;
 }
Exemple #12
0
 internal VcStringArgument(ArgGroup group, string name) : this(group, name, false)
 {
 }
Exemple #13
0
 protected VcArgument(ArgGroup group, string name)
 {
     _name  = name;
     _group = group;
 }
Exemple #14
0
 protected VcArgument(ArgGroup group, string name) {
     _name = name;
     _group = group;
 }
Exemple #15
0
 internal VcBoolArgument(ArgGroup group, string name) : this(group, name, "true")
 {
 }
Exemple #16
0
 internal VcStringArgument(ArgGroup group, string name): this(group, name, false) {
 }
Exemple #17
0
 internal VcBoolArgument(ArgGroup group, string name, string match) : base(group, name)
 {
     _match = match;
 }
Exemple #18
0
 public void AddString(ArgGroup group, string propName, string argName) {
     _htArgs [propName] = new VcStringArgument(group, argName);
 }
Exemple #19
0
 internal VcEnumArgument(ArgGroup group, string name, string[] values) : base(group, name)
 {
     _values = values;
 }
Exemple #20
0
 internal QuotedLinkerStringArgument(ArgGroup group, string name, bool ignoreEmptyValue): base(group, name, ignoreEmptyValue) {
 }
Exemple #21
0
 public void AddLinkerString(ArgGroup group, string propName, string argName)
 {
     _htArgs [propName] = new LinkerStringArgument(group, argName);
 }
Exemple #22
0
 internal VcBoolArgument(ArgGroup group, string name, string match): base(group, name) {
     _match = match;
 }
Exemple #23
0
 public void AddLinkerString(ArgGroup group, string propName, string argName, bool ignoreEmptyValue)
 {
     _htArgs [propName] = new LinkerStringArgument(group, argName, ignoreEmptyValue);
 }
Exemple #24
0
 public void AddQuotedLinkerString(ArgGroup group, string propName, string argName) {
     _htArgs [propName] = new QuotedLinkerStringArgument(group, argName);
 }
Exemple #25
0
 public void AddEnum(ArgGroup group, string propName, string argName, params string[] values) {
     _htArgs [propName] = new VcEnumArgument(group, argName, values);
 }
Exemple #26
0
 public void AddBool(ArgGroup group, string propName, string argName, string match) {
     _htArgs [propName] = new VcBoolArgument(group, argName, match);
 }
Exemple #27
0
 public void AddBool(ArgGroup group, string propName, string argName, string match)
 {
     _htArgs [propName] = new VcBoolArgument(group, argName, match);
 }