12 |
|
class Poller : public Contactor |
13 |
|
{ |
14 |
|
private: |
15 |
+ |
string file; |
16 |
|
struct Find |
17 |
|
{ |
18 |
|
unsigned reply; |
44 |
|
vector<string> approve; |
45 |
|
} |
46 |
|
improve; |
47 |
+ |
queue<unsigned> messages; |
48 |
+ |
void load(); |
49 |
+ |
void save(); |
50 |
+ |
void ballots(); |
51 |
+ |
void ballot(unsigned message); |
52 |
+ |
void submit(const string& type, const string& text); |
53 |
+ |
void approvals(); |
54 |
+ |
void approval(unsigned message); |
55 |
|
public: |
56 |
|
Poller(); |
57 |
< |
~Poller() {} |
57 |
> |
~Poller(); |
58 |
|
void poll(bool nodelete, const string& file); |
59 |
|
}; |
60 |
|
|