]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTConfiguration.h
- added libAliHLTRCU to default libraries
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTConfiguration.h
index 71027049028c02acc5bf320c0086ab94295f58c2..5a0d4e459f4b26ff82a1072bd7e5bb0adc3c7f09 100644 (file)
@@ -1,8 +1,10 @@
+//-*- Mode: C++ -*-
 // @(#) $Id$
 
 #ifndef ALIHLTCONFIGURATION_H
 #define ALIHLTCONFIGURATION_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+/* This file is property of and copyright by the ALICE HLT Project        * 
+ * ALICE Experiment at CERN, All rights reserved.                         *
  * See cxx source for full Copyright notice                               */
 
 /** @file   AliHLTConfiguration.h
     @note   The class is used in Offline (AliRoot) context
 */
 
-#include <cerrno>
+// see below for class documentation
+// or
+// refer to README to build package
+// or
+// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt   
+
+#include <vector>
 #include <TObject.h>
 #include <TList.h>
 #include "AliHLTDataTypes.h"
@@ -62,11 +70,10 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    */
   AliHLTConfiguration(const char* id, const char* component,
                      const char* sources, const char* arguments);
-  /** not a valid copy constructor, defined according to effective C++ style */
-  AliHLTConfiguration(const AliHLTConfiguration&);
-  /** not a valid assignment op, but defined according to effective C++ style */
-  AliHLTConfiguration& operator=(const AliHLTConfiguration&);
-  /** destructor */
+  /** copy constructor */
+  AliHLTConfiguration(const AliHLTConfiguration& src);
+  /** assignment op */
+  AliHLTConfiguration& operator=(const AliHLTConfiguration& src);
   /** destructor */
   virtual ~AliHLTConfiguration();
 
@@ -82,7 +89,7 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
   /**
    * Global de-init and cleanup of the global configuration handler
    */
-  static int GlobalDeinit();
+  static int GlobalDeinit(AliHLTConfigurationHandler* pHandler);
 
   /*****************************************************************************
    * properties of the configuration
@@ -101,7 +108,7 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * The id is a unique string.
    * @return id of the component
    */
-  const char* GetComponentID() {return fComponent;}
+  const char* GetComponentID() const {return fComponent;}
 
   /**
    * Print status info.
@@ -182,23 +189,26 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    */
   int ExtractArguments();
 
-  /* helper function to build a vector from an argument string
+  /**
+   * Helper function to build a vector from an argument string
+   * @param arg       pointer to argument string
+   * @param argList   target to receive the argument list
    */
   int InterpreteString(const char* arg, vector<char*>& argList);
 
   /** id of this configuration */
-  const char* fID;
+  TString fID;                                                     // see above
   /** component id of this configuration */
-  const char* fComponent;
+  TString fComponent;                                              // see above
 
   /** the <i>sources</i> string as passed to the constructor */
-  const char* fStringSources;
+  TString fStringSources;                                          // see above
   /** number of resolved sources, -1 indicates re-evaluation */
-  int fNofSources;
+  int fNofSources;                                                 // see above
   /** list of sources */
-  vector<AliHLTConfiguration*> fListSources;
+  vector<AliHLTConfiguration*> fListSources;                       // see above
   /** iterator for the above list */
-  vector<AliHLTConfiguration*>::iterator fListSrcElement;
+  vector<AliHLTConfiguration*>::iterator fListSrcElement;          // see above
 
   /**
    * The argument string as passed to the constructor.
@@ -206,13 +216,14 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * be parsed and the separated arguments stored in the @ref fArgv array
    * and @ref fArgc member.
    */
-  const char* fArguments;
+  TString fArguments;                                              // see above
   /** number of arguments */
-  int fArgc;
+  int fArgc;                                                       // see above
   /** argument array */
-  char** fArgv;
+  char** fArgv;                                                    // see above
 
-  static AliHLTConfigurationHandler* fConfigurationHandler;
+  /** the instance of the global configuration handler */
+  static AliHLTConfigurationHandler* fgConfigurationHandler;       //! transient
 
   ClassDef(AliHLTConfiguration, 0);
 };