/// <summary> /// Retrieves all entries from the given <paramref name="section" /> from this log file and copies /// them into the given <paramref name="buffer" />. /// </summary> /// <remarks> /// TODO: Move this method into the <see cref="ILogFile"/> interface /// </remarks> /// <param name="logFile"></param> /// <param name="section"></param> /// <param name="buffer"></param> /// <param name="destinationIndex"></param> public static void GetEntries(this ILogFile logFile, LogFileSection section, ILogEntries buffer, int destinationIndex) { foreach (var column in buffer.Columns) { buffer.CopyFrom(column, destinationIndex, logFile, section); } }
/// <inheritdoc /> public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { lock (_syncRoot) { foreach (var column in buffer.Columns) { buffer.CopyFrom(column, destinationIndex, this, indices); } } }
/// <inheritdoc /> public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { lock (_syncRoot) { foreach (var column in buffer.Columns) { buffer.CopyFrom(column, destinationIndex, this, section); } } }
/// <inheritdoc /> public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { try { _logFile.GetEntries(section, buffer, destinationIndex); } catch (Exception e) { BlameExceptionOnPlugin(e); } }
/// <inheritdoc /> public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { try { _logFile.GetEntries(indices, buffer, destinationIndex); } catch (Exception e) { BlameExceptionOnPlugin(e); } }
/// <inheritdoc /> public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { ILogFile logFile = _innerLogFile; if (logFile != null) { logFile.GetEntries(section, buffer, destinationIndex); } else { foreach (var column in buffer.Columns) { buffer.FillDefault(column, destinationIndex, section.Count); } } }
/// <inheritdoc /> public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { ILogFile logFile = _innerLogFile; if (logFile != null) { logFile.GetEntries(indices, buffer, destinationIndex); } else { foreach (var column in buffer.Columns) { buffer.FillDefault(column, destinationIndex, indices.Count); } } }
/// <inheritdoc /> public override void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { throw new NotImplementedException(); }
/// <inheritdoc /> public override void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { throw new NotImplementedException(); }
/// <summary> /// Retrieves all entries with the given <paramref name="indices"/> from this log file and copies /// them into the given <paramref name="buffer"/>. /// </summary> /// <remarks> /// TODO: Move this method into the <see cref="ILogFile"/> interface /// </remarks> /// <param name="logFile"></param> /// <param name="indices"></param> /// <param name="buffer"></param> public static void GetEntries(this ILogFile logFile, IReadOnlyList <LogLineIndex> indices, ILogEntries buffer) { foreach (var column in buffer.Columns) { buffer.CopyFrom(column, 0, logFile, indices); } }
/// <inheritdoc /> public abstract void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex);
/// <inheritdoc /> public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { _buffer.GetEntries(indices, buffer, destinationIndex); }
/// <inheritdoc /> public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { _buffer.GetEntries(section, buffer, destinationIndex); }
/// <summary> /// Copies data from the given array into this buffer. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="section"></param> /// <param name="column">The column to copy data to</param> /// <param name="source">The source from which to copy data from</param> public static void CopyFrom <T>(this ILogEntries section, ILogFileColumn <T> column, T[] source) { section.CopyFrom(column, 0, source, 0, source.Length); }
/// <inheritdoc /> public override void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex) { _source.GetEntries(section, buffer, destinationIndex); }
/// <summary> /// Retrieves all entries from the given <paramref name="section" /> from this log file and copies /// them into the given <paramref name="buffer" />. /// </summary> /// <param name="logFile"></param> /// <param name="section"></param> /// <param name="buffer"></param> public static void GetEntries(this ILogFile logFile, LogFileSection section, ILogEntries buffer) { GetEntries(logFile, section, buffer, 0); }
/// <inheritdoc /> public override void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex) { _source.GetEntries(indices, buffer, destinationIndex); }
/// <inheritdoc /> public abstract void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex);