45 Data(
const DlsProto::Data &);
50 unsigned int,
unsigned int &, T*,
unsigned int);
52 void push_back(
const Data &);
54 Time start_time()
const {
return _start_time; }
55 Time end_time()
const {
56 return _start_time + _time_per_value * _data.size();
58 Time time_per_value()
const {
return _time_per_value; }
59 MetaType meta_type()
const {
return _meta_type; }
60 unsigned int meta_level()
const {
return _meta_level; }
62 size_t size()
const {
return _data.size(); }
63 double value(
unsigned int index)
const {
return _data[index]; }
64 Time time(
unsigned int index)
const {
65 return _start_time + _time_per_value * index;
68 int calc_min_max(
double *,
double *)
const;
74 unsigned int _meta_level;
75 std::vector<double> _data;
87 unsigned int meta_level,
88 unsigned int decimation,
89 unsigned int &decimationCounter,
96 _start_time = time + tpv * decimationCounter;
97 _time_per_value = tpv * decimation;
98 _meta_type = meta_type;
99 _meta_level = meta_level;
102 for (i = 0; i < size; i++) {
103 if (!decimationCounter) {
104 _data.push_back((
double) data[i]);
105 decimationCounter = decimation - 1;
Global data structures and functions.
MetaType
Meta type for recorded data.
Datentyp zur Speicherung der Zeit in Mikrosekunden.
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).
void import(Time, Time, MetaType, unsigned int, unsigned int, unsigned int &, T *, unsigned int)
Imports data block properties.