class Pocolog::Logfiles::StreamInfo
Basic information about a stream, as saved in the index files
Constants
- STREAM_INFO_VERSION
Attributes
Position of the declaration block as [raw_pos, io_index]. This information can directly be given to Pocolog::Logfiles#seek
The index data itself. This is a instance of StreamIndex
The position of the first and last samples in the file set, as [[raw_pos, io_index], [raw_pos, io_index]]. It is empty for empty streams.
The logical time of the first and last samples of that stream [beginning, end]. It is empty for empty streams.
The real time of the first and last samples of that stream [beginning, end]. It is empty for empty streams.
The number of samples in this stream
the version of the StreamInfo class. This is only used to detect if an old index file is on the disk compared to the code
Public Class Methods
# File lib/pocolog/file.rb, line 484 def initialize @version = STREAM_INFO_VERSION @interval_io = [] @interval_lg = [] @interval_rt = [] @size = 0 @index = StreamIndex.new() end
Public Instance Methods
True if this stream is empty
# File lib/pocolog/file.rb, line 482 def empty?; size == 0 end