]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTDataSink.cxx
coverity fix
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataSink.cxx
index d616fea666bd89f749d92610cc2161e3d4bdf130..03d4df6da260c199bcc9db22efbbed3fbe3420d7 100644 (file)
@@ -1,28 +1,26 @@
 // $Id$
 
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Authors: Matthias Richter <Matthias.Richter@ift.uib.no>                *
- *          for The ALICE Off-line Project.                               *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
+//**************************************************************************
+//* This file is property of and copyright by the                          * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//*                                                                        *
+//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+//*                  for The ALICE HLT Project.                            *
+//*                                                                        *
+//* Permission to use, copy, modify and distribute this software and its   *
+//* documentation strictly for non-commercial purposes is hereby granted   *
+//* without fee, provided that the above copyright notice appears in all   *
+//* copies and that both the copyright notice and this permission notice   *
+//* appear in the supporting documentation. The authors make no claims     *
+//* about the suitability of this software for any purpose. It is          *
+//* provided "as is" without express or implied warranty.                  *
+//**************************************************************************
 
-/** @file   AliHLTDataSink.cxx
-    @author Matthias Richter
-    @date   
-    @brief  Base class implementation for HLT data source components. */
-
-#if __GNUC__>= 3
-using namespace std;
-#endif
+/// @file   AliHLTDataSink.cxx
+/// @author Matthias Richter
+/// @date   
+/// @brief  Base class implementation for HLT data source components.
+///
 
 #include "AliHLTDataSink.h"
 
@@ -31,21 +29,21 @@ ClassImp(AliHLTDataSink)
 
 AliHLTDataSink::AliHLTDataSink()
 { 
-  // see header file for class documentation
-  // or
-  // refer to README to build package
-  // or
-  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+  // Base class of HLT data sink components.
+  // The class provides a common interface for the implementation of HLT data
+  // sink components.
+  // Sink components do not produce any output consequently the processing
+  // function is called 'DumpEvent'.
 }
 
 AliHLTDataSink::~AliHLTDataSink()
 { 
-  // see header file for class documentation
+  // destructor
 }
 
 AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
 {
-  // see header file for class documentation
+  // default method as sink components do not produce output
   AliHLTComponentDataType dt =
     {sizeof(AliHLTComponentDataType),
      kAliHLTVoidDataTypeID,
@@ -55,7 +53,7 @@ AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
 
 void AliHLTDataSink::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
 {
-  // see header file for class documentation
+  // default method as sink components do not produce output
   constBase=0;
   inputMultiplier=0;
 }
@@ -65,10 +63,10 @@ int AliHLTDataSink::DoProcessing( const AliHLTComponentEventData& evtData,
                                  AliHLTComponentTriggerData& trigData,
                                  AliHLTUInt8_t* outputPtr, 
                                  AliHLTUInt32_t& size,
-                                 vector<AliHLTComponentBlockData>& outputBlocks,
+                                 AliHLTComponentBlockDataList& outputBlocks,
                                  AliHLTComponentEventDoneData*& edd )
 {
-  // see header file for class documentation
+  // Processing method, calls child's DumpEvent
   int iResult=0;
   if (outputPtr==NULL
       && size==0 
@@ -81,7 +79,7 @@ int AliHLTDataSink::DoProcessing( const AliHLTComponentEventData& evtData,
 }
 
 int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& evtData,
-                              const AliHLTComponentBlockData* blocks
+                              const AliHLTComponentBlockData* /*blocks*/
                               AliHLTComponentTriggerData& trigData )
 {
   // we just forward to the high level method, all other parameters already
@@ -89,8 +87,9 @@ int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& evtData,
   return DumpEvent(evtData, trigData);
 }
 
-int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData)
+int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& /*evtData*/, AliHLTComponentTriggerData& /*trigData*/)
 {
+  // default method: one of DumpEvent methods must be implemented
   HLTFatal("no processing method implemented");
   return -ENOSYS;
 }