bool isRead; // CSV読込みフラグ /// <summary> /// コンストラクタ /// </summary> public CsvFileIO(CSV_TYPE csv_type) { listFileData = new List<List<string>>(); switch (csv_type) { case CSV_TYPE.COMMA: ch_split = ','; break; case CSV_TYPE.TAB: ch_split = '\t'; break; default: ch_split = ' '; break; } }
/// <summary> /// コンストラクタ(親クラスのものも使用) /// </summary> /// <param name="csv_type"></param> public XeditCsv(CSV_TYPE csv_type) : base(csv_type) { // 型ごとのサイズ情報初期化 dictTypeSize = new Dictionary<string, int>(); dictTypeSize.Add("char", 1); dictTypeSize.Add("signed char", 1); dictTypeSize.Add("unsigned char", 1); dictTypeSize.Add("byte", 1); dictTypeSize.Add("uchar", 1); dictTypeSize.Add("short", 2); dictTypeSize.Add("signed short", 2); dictTypeSize.Add("unsigned short", 2); dictTypeSize.Add("ushort", 2); dictTypeSize.Add("int", 4); dictTypeSize.Add("signed", 4); dictTypeSize.Add("unsigned", 4); dictTypeSize.Add("signed int", 4); dictTypeSize.Add("unsigned int", 4); dictTypeSize.Add("uint", 4); dictTypeSize.Add("long", 4); dictTypeSize.Add("signed long", 4); dictTypeSize.Add("unsigned long", 4); dictTypeSize.Add("ulong", 4); dictTypeSize.Add("long long", 8); dictTypeSize.Add("signed long long", 8); dictTypeSize.Add("unsigned long long", 8); dictTypeSize.Add("float", 4); dictTypeSize.Add("double", 8); dictStructInfo = new Dictionary<string,XeditStructInfo>(); IsXeditCsvRead = false; }