-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmpteOffset.cpp
More file actions
61 lines (48 loc) · 1.05 KB
/
Copy pathSmpteOffset.cpp
File metadata and controls
61 lines (48 loc) · 1.05 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include "SmpteOffset.h"
SmpteOffset::SmpteOffset(uint8_t* hour, uint8_t* min, uint8_t* sec, uint8_t* fr, uint8_t* subFr) {
this->hour = new uint8_t(*hour);
this->min = new uint8_t(*min);
this->sec = new uint8_t(*sec);
this->fr = new uint8_t(*fr);
this->subFr = new uint8_t(*subFr);
}
SmpteOffset::SmpteOffset() {
hour = new uint8_t;
min = new uint8_t;
sec = new uint8_t;
fr = new uint8_t;
subFr = new uint8_t;
}
SmpteOffset::~SmpteOffset() {
delete(hour, min, sec, fr, subFr);
}
uint8_t* SmpteOffset::getHour() {
return hour;
}
uint8_t* SmpteOffset::getMin() {
return min;
}
uint8_t* SmpteOffset::getSec() {
return sec;
}
uint8_t* SmpteOffset::getFr() {
return fr;
}
uint8_t* SmpteOffset::getSubFr() {
return subFr;
}
void SmpteOffset::setHour(uint8_t* newHour) {
*hour = *newHour;
}
void SmpteOffset::setMin(uint8_t* newMin) {
*min = *newMin;
}
void SmpteOffset::setSec(uint8_t* newSec) {
*sec = *newSec;
}
void SmpteOffset::setFr(uint8_t* newFr) {
*fr = *newFr;
}
void SmpteOffset::setSubFr(uint8_t* newSubFr) {
*subFr = *newSubFr;
}