source: Sophya/trunk/Poubelle/archTOI.old/toimanager.h@ 581

Last change on this file since 581 was 534, checked in by ansari, 26 years ago

V2

File size: 1016 bytes
RevLine 
[534]1// toimanager.h
2// Eric Aubourg CEA/DAPNIA/SPP septembre 1999
3
4#ifndef TOIMANAGER_H
5#define TOIMANAGER_H
6
7#include <set>
8#include <map>
9#include <iostream.h>
10using namespace std;
11
12#include "toi.h"
13
14class TOIProducer;
15class TOILowLevProducer;
16class TOIAbsorber;
17
18class TOIManager {
19public:
20 static void registerDefaultProducers();
21 static void registerProducer(TOIProducer* p);
22 static TOIProducer* findTOIProducer(TOI const& toi); // NULL if cannot build
23
24 static set<TOIProducer*> producers;
25
26 static void registerLLProducer(TOILowLevProducer* p, int blk_kind);
27 static void activateLLProducer(TOILowLevProducer* p);
28 static map<TOILowLevProducer*, long> llProducers; // long : masque de bloc
29 static map<TOILowLevProducer*, long> activeLLProducers; // long : masque de bloc
30 static int trigMask;
31
32 static void dumpAvailTOIs(ostream& s);
33};
34
35#define REGPROD(_x_) TOIManager::registerProducer(new _x_);
36#define REGLLPROD(_x_,_blk_) TOIManager::registerLLProducer(new _x_, _blk_);
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.