public static void SetOption(String name, String value) { String normalname = NameNormaliser.NormaliseName(name); if ("fixedlengthstringparsing".Equals(normalname)) { fixedLengthStringParsing = Boolean.Parse(value); if (fixedLengthStringParsing) { LoadHandler("dbfit.util.FixedLengthStringHandler"); } else { RemoveHandler("dbfit.util.FixedLengthStringHandler"); } } else if ("bindsymbols".Equals(normalname)) { bindSymbols = Boolean.Parse(value); } else { throw new ApplicationException("Unsupported option" + name); } }
public static void SetOption(CellProcessor processor, String name, String value) { String normalname = NameNormaliser.NormaliseName(name); if ("fixedlengthstringparsing".Equals(normalname)) { fixedLengthStringParsing = Boolean.Parse(value); if (fixedLengthStringParsing) { processor.AddOperator(typeof(ParseQuotedString).FullName); } else { processor.RemoveOperator(typeof(ParseQuotedString).FullName); } } else if ("bindsymbols".Equals(normalname)) { bindSymbols = Boolean.Parse(value); } else if (normalname == "commandtimeout") { commandTimeOut = int.Parse(value); } else { throw new ApplicationException("Unsupported option" + name); } }