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
|
#include <map>
#include <string>
class TmModule;
class TmApvPair {
public:
TmApvPair(int ident, int crate);
~TmApvPair();
int red, green, blue;
float value;
std::string text;
int count;
int idex; //Fed and position in fed
int crate;
TmModule* mod;
int mpos; //ApvPair position in module
int getFedCh() {
int res = (int)(idex / 1000);
return idex - res * 1000;
}
int getFedId() {
int res = (int)(idex / 1000);
return res;
}
};
|