]>
Commit | Line | Data |
---|---|---|
f23a6e1a | 1 | // @(#) $Id$ |
2 | ||
3 | #ifndef ALIHLTSYSTEM_H | |
4 | #define ALIHLTSYSTEM_H | |
5 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
8 | /* AliHLTComponentHandler | |
9 | global HLT module management | |
10 | */ | |
11 | ||
12 | ||
13 | #include "AliL3RootTypes.h" | |
14 | #include "AliHLTDataTypes.h" | |
15 | #include <stdarg.h> | |
16 | class AliHLTComponentHandler; | |
17 | ||
18 | #define LOG_BUFFER_SIZE 100 // global logging buffer | |
19 | #define LOG_PREFIX " " // logging prefix, for later extensions | |
20 | ||
21 | class AliHLTSystem { | |
22 | public: | |
23 | AliHLTSystem(); | |
24 | virtual ~AliHLTSystem(); | |
25 | ||
26 | Int_t SetLogLevel(Int_t iLogLevel) {return fLogLevel;} | |
27 | static int Logging(void * param, AliHLTComponent_LogSeverity severity, const char* origin, const char* keyword, const char* message); | |
28 | static const char* BuildLogString(const char *format, va_list ap); | |
29 | AliHLTComponentHandler* fpComponentHandler; | |
30 | protected: | |
31 | ||
32 | private: | |
33 | Int_t fLogLevel; | |
34 | static char fLogBuffer[LOG_BUFFER_SIZE]; | |
35 | ||
36 | ClassDef(AliHLTSystem, 0) | |
37 | }; | |
38 | #endif | |
39 |