]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTModulePreprocessor.h
Fixes for compile issues in HLT branch with clang 5.0/C++11 (savannah #103408).
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTModulePreprocessor.h
index 10e6915fef2eb5d89e5bde1511eaf192b8334028..c8f78e19f69e5206b443bc0fcf8869412a7e4f9b 100644 (file)
@@ -1,5 +1,5 @@
 //-*- Mode: C++ -*-
-// @(#) $Id$
+// $Id$
 
 #ifndef ALIHLTMODULEPREPROCESSOR_H
 #define ALIHLTMODULEPREPROCESSOR_H
@@ -7,12 +7,11 @@
 //* ALICE Experiment at CERN, All rights reserved.                         *
 //* See cxx source for full Copyright notice                               *
 
-/**
- * @file   AliHLTModulePreprocessor.h
- * @author Matthias Richter
- * @date   2008-01-22
- * @brief  Base class for HLT module preprocessors
- */
+// @file   AliHLTModulePreprocessor.h
+// @author Matthias Richter
+// @date   2008-01-22
+// @brief  Base class for HLT module preprocessors
+// 
 
 // see below for class documentation
 // or
@@ -73,13 +72,13 @@ public:
   virtual UInt_t Process(TMap* dcsAliasMap) = 0;
 
   /** Get the run no */
-  Int_t GetRun();
+  Int_t GetRun() const;
 
   /** Get the start time */
-  UInt_t GetStartTime();
+  UInt_t GetStartTime() const;
 
   /** Get the end time */
-  UInt_t GetEndTime();
+  UInt_t GetEndTime() const;
 
  /**
    * Get the id of the module
@@ -87,7 +86,7 @@ public:
    * The function is pure virtual and must be implemented by the child class.
    * @return module id (string)
    */
-  virtual const char* GetModuleID() = 0;
+  virtual const char* GetModuleID() {return ClassName();}
 
  /**
    * Get all detectors the module process
@@ -96,7 +95,7 @@ public:
    * The function is pure virtual and must be implemented by the child class.
    * @return bit mask for active detectors (Int_t)
    */
-  virtual const Int_t GetModuleNumber() = 0;
+  virtual Int_t GetModuleNumber() = 0;
 
   /** Get detector bit mask (bit mask comparable to the detectorMask but for the respective detector only)
    *  out of detector name
@@ -117,6 +116,10 @@ public:
    */
   const char *DetectorName(Int_t detectorID);
 
+  /// extract object from the alias map
+  /// return the last object from the value set
+  TObject* GetFromMap(TMap* dcsAliasMap, const char* stringId) const;
+
   /** number of detectors */
   static const Int_t kNDetectors;    // Number of detectors