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