/// <summary> /// タイプ設定 /// </summary> /// <param name="status">読み込み経過状態</param> /// <param name="dataSetting">読み込み結果インスタンス</param> private void ReadDataSetting(FileReadStatus status, out DBDataSetting dataSetting) { Logger.Debug(FileIOMessage.StartCommonRead(typeof(DBTypeFileReader), "データ設定")); var reader = new DBDataSettingReader(status, 1); var settings = reader.Read(); dataSetting = settings[0]; Logger.Debug(FileIOMessage.EndCommonRead(typeof(DBTypeFileReader), "データ設定")); }
/// <summary> /// DBデータ設定 /// </summary> /// <param name="status">読み込み経過状態</param> /// <param name="data">結果格納インスタンス</param> private void ReadDBData(FileReadStatus status, DatabaseDat data) { var length = status.ReadInt(); status.IncreaseIntOffset(); Logger.Debug(FileIOMessage.SuccessRead(typeof(DBDataSettingReader), "タイプ数", length)); var reader = new DBDataSettingReader(status, length); data.SettingList.AddRange(reader.Read()); Logger.Debug(FileIOMessage.EndCommonRead( typeof(DatabaseDatFileReader), "DBデータ設定")); }