//-*- Mode: C++ -*-
-// @(#) $Id$
+// $Id$
#ifndef ALIHLTOUT_H
#define ALIHLTOUT_H
//* ALICE Experiment at CERN, All rights reserved. *
//* See cxx source for full Copyright notice *
-/** @file AliHLTOUT.h
- @author Matthias Richter
- @date
- @brief The control class for HLTOUT data.
-*/
+/// @file AliHLTOUT.h
+/// @author Matthias Richter
+/// @date
+/// @brief The control class for HLTOUT data.
+///
#include <vector>
#include "AliHLTLogging.h"
: fDataType(dt), fSpecification(spec), fIndex(index), fSelected(false), fProcessed(false), fpCollection(pCollection) {};
AliHLTOUTBlockDescriptor(const AliHLTOUTBlockDescriptor& src)
: fDataType(src.fDataType), fSpecification(src.fSpecification), fIndex(src.fIndex), fSelected(false), fProcessed(false), fpCollection(src.fpCollection) {}
- AliHLTOUTBlockDescriptor& operator=(const AliHLTOUTBlockDescriptor& src)
- { fDataType=src.fDataType; fSpecification=src.fSpecification; fIndex=src.fIndex; fSelected=false; fProcessed=false; fpCollection=src.fpCollection; return *this; }
+ AliHLTOUTBlockDescriptor& operator=(const AliHLTOUTBlockDescriptor& src) {
+ if (this==&src) return *this;
+ fDataType=src.fDataType; fSpecification=src.fSpecification; fIndex=src.fIndex; fSelected=false; fProcessed=false; fpCollection=src.fpCollection; return *this;
+ }
~AliHLTOUTBlockDescriptor() {}
operator AliHLTComponentDataType() const {return fDataType;}
*/
const AliHLTOUTHandlerListEntry& GetHandlerDesc();
+ /// print info
+ void Print(const char* option="") const;
+
private:
/** data type of the block */
AliHLTComponentDataType fDataType; //!transient
*/
bool IsEmpty() {return fBlocks.size()==0;}
+ /// print info
+ void Print(const char* option="") const;
+
private:
/** standard constructor prohibited */
AliHLTOUTHandlerListEntry();
/**
* Get buffer of the selected data block.
+ * Buffer has to be released using ReleaseDataBuffer
+ * @param [out] desc block data descriptor
+ */
+ int GetDataBuffer(AliHLTComponentBlockData& desc);
+
+ /**
+ * Get buffer of the selected data block.
+ * Buffer has to be released using ReleaseDataBuffer
* @param [out] pBuffer buffer of the selected data block
* @param [out] size size of the selected data block
*/
*/
void SwitchVerbosity(bool verbose) {fbVerbose=verbose;}
+ /// print info
+ void Print(const char* option="") const;
+
private:
/** copy constructor prohibited */
AliHLTOUT(const AliHLTOUT&);