-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest2.h
55 lines (41 loc) · 945 Bytes
/
test2.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
47
48
49
50
51
52
53
54
55
#ifndef TEST2_H
#define TEST2_H
#include <thread>
#include "bgpoint.h"
#include "common.h"
#include "stopwatch.h"
using namespace std;
class NodeAT2 : public BufferGraph::Point {
private:
StopWatch *_stop_watch;
public:
NodeAT2() : BufferGraph::Point() { }
void Run();
void SetStopWatch(StopWatch *stop_watch) { _stop_watch = stop_watch; }
};
class NodeBT2 : public BufferGraph::Point {
private:
StopWatch *_stop_watch;
public:
NodeBT2() : BufferGraph::Point() { }
void Run();
void SetStopWatch(StopWatch *stop_watch) { _stop_watch = stop_watch; }
};
class NodeCT2 : public BufferGraph::Point {
private:
StopWatch *_stop_watch;
public:
NodeCT2() : BufferGraph::Point() { }
void Run();
void SetStopWatch(StopWatch *stop_watch) { _stop_watch = stop_watch; }
};
class Test2 {
private:
NodeAT2 a;
NodeBT2 b;
NodeCT2 c;
public:
Test2();
~Test2();
};
#endif // TEST2_H