List event tab embedded in left panel of ED + other minor changes.
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / AliStorageTypes.h
1 #ifndef AliStorageTypes_H
2 #define AliStorageTypes_H
3
4 #include <TSystem.h>
5
6 inline const char* GetConfigFilePath()
7 {
8         return Form("%s/MONITOR/alistoragemanager/setupStorageDatabase.sh",
9                     gSystem->Getenv("ALICE_ROOT"));
10 }
11
12 enum storageSockets{
13         SERVER_COMMUNICATION_REQ=0,
14         SERVER_COMMUNICATION_REP,
15         CLIENT_COMMUNICATION_REQ,
16         CLIENT_COMMUNICATION_REP,
17         EVENTS_SERVER_PUB,
18         EVENTS_SERVER_SUB,
19         XML_PUB,
20         NUMBER_OF_SOCKETS
21 };
22         
23 enum statusType{
24         STATUS_WAITING=1,
25         STATUS_OK,
26         STATUS_ERROR,
27         STATUS_DOWN
28 };
29
30 enum requestType{
31         REQUEST_CONNECTION=1,
32         REQUEST_RECEIVING,
33         REQUEST_SAVING,
34         REQUEST_CURRENT_SIZE,
35         REQUEST_LIST_EVENTS,
36         REQUEST_GET_EVENT,
37         REQUEST_GET_NEXT_EVENT,
38         REQUEST_GET_PREV_EVENT,
39         REQUEST_GET_LAST_EVENT,
40         REQUEST_GET_FIRST_EVENT,
41         REQUEST_MARK_EVENT,
42         REQUEST_SET_PARAMS,
43         REQUEST_GET_PARAMS
44 };
45
46 struct clientRequestStruct{
47         int messageType;
48         int maxStorageSize;
49         int maxOccupation;
50         int removeEvents;
51         int eventsInChunk;
52 };
53
54 struct eventStruct{
55         int runNumber;
56         int eventNumber;
57 };
58
59 struct listRequestStruct{
60         int runNumber[2];
61         int eventNumber[2];
62         int marked[2];
63         int multiplicity[2];
64         char system[2][20];
65 };
66
67 struct serverRequestStruct{
68         int messageType;
69         struct eventStruct event;
70         struct listRequestStruct list;
71 };
72
73 typedef struct serverListStruct{
74         int runNumber;
75         int eventNumber;
76         char system[20];
77         int multiplicity;
78         int marked;
79 }serverListStruct;
80
81 #endif