-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvlirdata.cpp
More file actions
34 lines (27 loc) · 726 Bytes
/
vlirdata.cpp
File metadata and controls
34 lines (27 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "vlirdata.h"
VLIRData::VLIRData(GeosRecordPointer &pointer, QByteArray &data, int index) {
this->Track = pointer.track();
this->Sector = pointer.sector();
this->ID = pointer.id();
this->Data = data;
this->Label = QString("Record %1 on track ").arg(pointer.id(), 3, 10, QLatin1Char('0')) + QString::number(track()) + " sector " + QString::number(sector());
this->Index = index;
}
QString &VLIRData::label() {
return this->Label;
}
int VLIRData::track() {
return this->Track;
}
int VLIRData::sector() {
return this->Sector;
}
int VLIRData::index() {
return this->Index;
}
int VLIRData::id() {
return this->ID;
}
QByteArray &VLIRData::data() {
return this->Data;
}