-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathprpl-transferInfo.h
50 lines (40 loc) · 1.28 KB
/
prpl-transferInfo.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
#ifndef PRPL_TRANSFERINFO_H
#define PRPL_TRANSFERINFO_H
#include "prpl-basicTypes.h"
#include "prpl-transition.h"
namespace pRPL {
class TransferInfo {
public:
TransferInfo();
TransferInfo(int fromPrcID,
int toPrcID,
const string &lyrName,
int subspcGlbID = pRPL::ERROR_ID,
pRPL::TransferDataType tDataType = pRPL::SPACE_TRANSFDATA);
~TransferInfo() {}
int fromPrcID() const;
int toPrcID() const;
const string& lyrName() const;
int subspcGlbID() const;
pRPL::TransferDataType transfDataType() const;
bool completed() const;
void complete();
void restart();
protected:
int _fromPrcID;
int _toPrcID;
string _lyrName;
int _subspcGlbID;
pRPL::TransferDataType _tDataType; // SPACE_TRANSF or CELL_TRANSF
bool _cmplt;
};
class TransferInfoVect: public vector<pRPL::TransferInfo> {
public:
const pRPL::TransferInfo* findInfo(const string &lyrName,
int subspcGlbID) const;
/* Master checks if a Layer's Cellspace has been broadcasted */
bool checkBcastCellspace(int prcID,
const string &lyrName) const;
};
};
#endif