-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTGTimeSignature.h
46 lines (35 loc) · 935 Bytes
/
TGTimeSignature.h
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
#ifndef TG_TIME_SIGNATURE_H
#define TG_TIME_SIGNATURE_H
#include "TGFactory.h"
class TGTimeSignature
{
protected:
TGDuration *denominator;
int numerator;
public:
TGTimeSignature(TGFactory *factory){
numerator = 4;
denominator = factory->newDuration();
}
virtual ~TGTimeSignature();
int getNumerator() {
return numerator;
}
void setNumerator(int aNumerator) {
numerator = aNumerator;
}
TGDuration *getDenominator() {
return denominator;
}
void setDenominator(TGDuration *aDenominator) {
denominator = aDenominator;
}
TGTimeSignature* clone(TGFactory *factory){
TGTimeSignature *timeSignature = factory->newTimeSignature();
copy(timeSignature);
return timeSignature;
}
void copy(TGTimeSignature *timeSignature);
bool isEqual(TGTimeSignature *ts);
};
#endif