]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/util/AliHLTFileWriter.cxx
Coding conventions
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTFileWriter.cxx
index e0cfd10b9b4ee10892e3b950273050de2f0477f5..24dfaa9c87adf16d4a1a9efacc56cfa92b8df46b 100644 (file)
@@ -27,8 +27,8 @@ using namespace std;
 #include "AliHLTFileWriter.h"
 #include <TObjArray.h>
 #include <TObjString.h>
-#include <TMath.h>
-#include <TFile.h>
+//#include <TMath.h>
+//#include <TFile.h>
 
 /** the global object for component registration */
 AliHLTFileWriter gAliHLTFileWriter;
@@ -171,6 +171,12 @@ int AliHLTFileWriter::DoInit( int argc, const char** argv )
 int AliHLTFileWriter::InitWriter()
 {
   // see header file for class documentation
+  
+  // fCurrentFileName is used in dump event, just touched her to avoid
+  // coding convention violation RC11. The function can not be declared
+  // const since it is just the default implementation, overloaded
+  // virtual function might not be const
+  fCurrentFileName="";
   return 0; // note: this doesn't mean 'error'
 }
 
@@ -182,6 +188,11 @@ int AliHLTFileWriter::ScanArgument(int argc, const char** argv)
   if (argc==0 && argv==NULL) {
     // this is just to get rid of the warning "unused parameter"
   }
+  // fCurrentFileName is used in dump event, just touched her to avoid
+  // coding convention violation RC11. The function can not be declared
+  // const since it is just the default implementation, overloaded
+  // virtual function might not be const
+  fCurrentFileName="";
   return -EINVAL;
 }
 
@@ -196,6 +207,12 @@ int AliHLTFileWriter::DoDeinit()
 int AliHLTFileWriter::CloseWriter()
 {
   // see header file for class documentation
+
+  // fCurrentFileName is used in dump event, just touched her to avoid
+  // coding convention violation RC11. The function can not be declared
+  // const since it is just the default implementation, overloaded
+  // virtual function might not be const
+  fCurrentFileName="";
   return 0; // note: this doesn't mean 'error'
 }
 
@@ -295,7 +312,7 @@ int AliHLTFileWriter::ClearMode(Short_t mode)
   return fMode;
 }
 
-int AliHLTFileWriter::CheckMode(Short_t mode)
+int AliHLTFileWriter::CheckMode(Short_t mode) const
 {
   // see header file for class documentation