DLS  1.6
LibDLS::Chunk Class Reference

Chunk. More...

Public Member Functions

 Chunk (const DlsProto::ChunkInfo &, ChannelType)
 
void import (const std::string &, ChannelType)
 
void preload (const std::string &, ChannelType, Time, Time)
 
void fetch_range ()
 
Time start () const
 
Time end () const
 
bool incomplete () const
 
void fetch_data (Time, Time, unsigned int, DataCallback, void *, unsigned int)
 
bool operator< (const Chunk &) const
 
bool operator== (const Chunk &) const
 
void set_chunk_info (DlsProto::ChunkInfo *) const
 
void update_from_chunk_info (const DlsProto::ChunkInfo &)
 

Protected Types

enum  LoadState { Empty, Pre, Full }
 

Protected Member Functions

unsigned int _calc_optimal_level (Time, Time, unsigned int) const
 
Time _time_per_value (unsigned int) const
 
void _fetch_level_data_wrapper (Time, Time, MetaType, unsigned int, Time, Data **, DataCallback, void *, unsigned int, unsigned int &, Time &) const
 
template<class T >
void _fetch_level_data (Time, Time, MetaType, unsigned int, Time, Data **, DataCallback, void *, unsigned int, unsigned int &, Time &) const
 
template<class T >
bool _read_tag (IndexT< IndexRecord > &, unsigned int, IndexRecord &, IndexRecord &, bool &, File &, CompressionT< T > *, MetaType, unsigned int, Time, Data **, DataCallback, void *, unsigned int, unsigned int &, Time &) const
 
template<class T >
void _process_data_tag (const XmlTag *, Time, MetaType, unsigned int, Time, CompressionT< T > *, Data **, DataCallback, void *, unsigned int, unsigned int &, Time &) const
 

Protected Attributes

std::string _dir
 Chunk-Verzeichnis.
 
double _sample_frequency
 Abtastfrequenz.
 
unsigned int _meta_reduction
 Meta-Untersetzung.
 
int _format_index
 Kompressionsformat.
 
unsigned int _mdct_block_size
 MDCT-Blockgroesse.
 
Time _start
 Startzeit des Chunks.
 
Time _end
 Endzeit des Chunks.
 
ChannelType _type
 channel type
 
bool _incomplete
 Data ist still logged. More...
 
enum LibDLS::Chunk::LoadState _load_state
 

Detailed Description

Chunk.

Definition at line 72 of file Chunk.h.

Member Data Documentation

◆ _incomplete

bool LibDLS::Chunk::_incomplete
protected

Data ist still logged.

Definition at line 111 of file Chunk.h.