]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTConfigurationHandler.h
moved class declarations to separate files
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTConfigurationHandler.h
1 // $Id$
2
3 #ifndef ALIHLTCONFIGURATIONHANDLER_H
4 #define ALIHLTCONFIGURATIONHANDLER_H
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6  * See cxx source for full Copyright notice                               */
7
8 /** @file   AliHLTConfigurationHandler.h
9     @author Matthias Richter
10     @date   
11     @brief  global handling of HLT configurations.
12 */
13
14 /* #include <cerrno> */
15 #include <TObject.h>
16 #include <TList.h>
17 /* #include "AliHLTDataTypes.h" */
18 /* #include "AliHLTLogging.h" */
19 /* #include "AliHLTDataBuffer.h" */
20
21 class AliHLTConfigurationHandler : public AliHLTLogging {
22  public:
23   AliHLTConfigurationHandler();
24   //AliHLTConfigurationHandler(AliHLTConfiguration* pConf);
25   virtual ~AliHLTConfigurationHandler();
26
27   /*****************************************************************************
28    * registration
29    */
30
31   // register a configuration to the global list of configurations
32   int RegisterConfiguration(AliHLTConfiguration* pConf);
33
34   // create a configuration and register it
35   int CreateConfiguration(const char* id, const char* component, const char* sources, const char* arguments);
36
37   // remove a configuration from the global list
38   int RemoveConfiguration(AliHLTConfiguration* pConf);
39   int RemoveConfiguration(const char* id);
40
41   // find a configuration from the global list
42   AliHLTConfiguration* FindConfiguration(const char* id);
43
44   // print the registered configurations to the logging function
45   void PrintConfigurations();
46
47
48  private:
49   static TList fListConfigurations; // the list of registered configurations
50   static TList fListDynamicConfigurations; // the list of dynamic configurations (for proper cleanup)
51
52   ClassDef(AliHLTConfigurationHandler, 0);
53 };
54
55 #endif