Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
         }
     }
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex)
 {
     lock (_syncRoot)
     {
         foreach (var column in buffer.Columns)
         {
             buffer.CopyFrom(column, destinationIndex, this, section);
         }
     }
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex)
 {
     try
     {
         _logFile.GetEntries(section, buffer, destinationIndex);
     }
     catch (Exception e)
     {
         BlameExceptionOnPlugin(e);
     }
 }
Ejemplo n.º 5
0
 /// <inheritdoc />
 public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex)
 {
     try
     {
         _logFile.GetEntries(indices, buffer, destinationIndex);
     }
     catch (Exception e)
     {
         BlameExceptionOnPlugin(e);
     }
 }
Ejemplo n.º 6
0
        /// <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);
                }
            }
        }
Ejemplo n.º 7
0
        /// <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);
                }
            }
        }
Ejemplo n.º 8
0
 /// <inheritdoc />
 public override void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
 /// <inheritdoc />
 public override void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 10
0
 /// <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);
     }
 }
Ejemplo n.º 11
0
 /// <inheritdoc />
 public abstract void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex);
Ejemplo n.º 12
0
 /// <inheritdoc />
 public void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex)
 {
     _buffer.GetEntries(indices, buffer, destinationIndex);
 }
Ejemplo n.º 13
0
 /// <inheritdoc />
 public void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex)
 {
     _buffer.GetEntries(section, buffer, destinationIndex);
 }
Ejemplo n.º 14
0
 /// <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);
 }
Ejemplo n.º 15
0
 /// <inheritdoc />
 public override void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex)
 {
     _source.GetEntries(section, buffer, destinationIndex);
 }
Ejemplo n.º 16
0
 /// <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);
 }
Ejemplo n.º 17
0
 /// <inheritdoc />
 public override void GetEntries(IReadOnlyList <LogLineIndex> indices, ILogEntries buffer, int destinationIndex)
 {
     _source.GetEntries(indices, buffer, destinationIndex);
 }
Ejemplo n.º 18
0
 /// <inheritdoc />
 public abstract void GetEntries(LogFileSection section, ILogEntries buffer, int destinationIndex);