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