27 public class ConverterSettings
29 public ConverterSettings()
31 InputDictionary =
new List<Dictionary<object, dynamic>>();
32 InDataFormat =
new List<DataFormat>();
33 InputGrid =
new List<IGPALGrid<string>>();
34 InputData =
new List<string>();
35 ColumnNames =
new GPALGrid<string>();
36 ExcelSheetNames =
new GPALGrid<string>();
37 ExcelRowsPerSheet =
new GPALGrid<int>();
38 RegisteredStructs =
new HashSet<Type>();
39 RegisteredStructs.Add(typeof(WaitTime));
42 internal HashSet<Type> RegisteredStructs {
get;
set; }
44 internal XmlDocument InputXmlDocument {
get;
set; }
45 internal XmlDocument OutputXmlDocument {
get;
set; }
48 internal List<IGPALGrid<string>> InputGrid {
get;
set; }
49 internal IGPALGrid<string> OutputGrid {
get;
set; }
50 internal IGPALGrid<string> ColumnNames {
get;
set; }
51 internal IGPALGrid<string> ExcelSheetNames {
get;
set; }
52 internal IGPALGrid<int> ExcelRowsPerSheet {
get;
set; }
53 internal List<Dictionary<object, dynamic>> InputDictionary {
get;
set; }
54 internal Dictionary<string, string> OutputDictionary {
get;
set; }
55 internal List<string> InputData {
get;
set; }
56 internal string OutputData {
get;
set; }
57 internal GPALFile InputFile {
get;
set; }
58 internal GPALFile OutputFile {
get;
set; }
59 internal dynamic InputClass {
get;
set; }
60 internal Type InputClassType {
get;
set; }
61 internal Type InputClassElementType {
get;
set; }
62 internal dynamic OutputClass {
get;
set; }
63 internal Type OutputClassType {
get;
set; }
64 internal Type OutputClassElementType {
get;
set; }
65 internal List<DataFormat> InDataFormat {
get;
set; }
66 internal DataFormat OutDataFormat {
get;
set; } = DataFormat.NOTSET;
67 internal bool IgnoreFirstLineColumnHeaders {
get;
set; }
68 internal bool FirstLineIsColumnHeaders {
get;
set; }
69 internal bool InputFirstLineIsColumnHeaders {
get;
set; }
70 internal bool FieldsEnclosedInQuotes {
get;
set; }
71 internal char? InDelimiter {
get;
set; }
72 internal char? OutDelimiter {
get;
set; }
74 public void ClearDerived()
76 InputData =
new List<string>();
77 InputDictionary =
new List<Dictionary<object, dynamic>>();
78 InputGrid =
new List<IGPALGrid<string>>();
81 OutputClassElementType =
null;
82 OutputClassType =
null;
83 OutputData =
string.Empty;
84 OutputDictionary =
new Dictionary<string, string>();
85 OutputGrid =
GPAL.
Grid.ToGPALObject();