-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGatePairDose.h
66 lines (55 loc) · 2.22 KB
/
GatePairDose.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
56
57
58
59
60
61
62
63
64
65
66
//---------------------------------------------------------------------------
#pragma once
#ifndef GatePairDoseH
#define GatePairDoseH
#include "Cache.h"
#include "IObserve.h"
//-------------------------Class:GatePairDose------------------------------------
/*This class is used to keep a object while the software is running,the object is kept in
the GlobalMembers,as a member in the class GlobalMembers. This class:GatePairDose is used
to read the origin dose data from dosefile or cache,at the same time, it is the obserable
object in the Observer model:
HandledPairDose
/ |
/ |
/ |
(notify message)/ |
/ |
GatePairDose |(notify message)
|
|
|
|
DisplayPairDose */
//-------------------------------------------------------------------------------
class GatePairDose:public IObject{
private:
string angle;
DosePair* dosePair;
public:
/*Constructor*/
GatePairDose();
/*Destructor*/
~GatePairDose();
/*Copy Constructor*/
GatePairDose(const GatePairDose& r);
/*Overload operator = */
GatePairDose operator = (const GatePairDose& r);
void Notify(Message_Notify message);
void AddObserver(IObserver *pObserver);
void DeleteObserver(IObserver *pObserver);
private:
vector<IObserver*> ObserverList;
virtual bool SEHNotify(IObserver* observer, Message_Notify message);
public:
DosePair* getDosePair();
void setDosePair(DosePair& dosePair);
DosePair copyDosePair();
void allocateDosePair();
void cleanDosePair();
string* getAngle();
string copyAngle();
void setAngle(string _angle);
};
//---------------------------------------------------------------------------
#endif