Removing meaningless type qualifier on return type (icc warning 858)
[u/mrichter/AliRoot.git] / RAW / AliRawReaderDateV3.h
CommitLineData
29a569c4 1#ifndef ALIRAWREADERDATEV3_H
2#define ALIRAWREADERDATEV3_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9///
10/// This is a class for reading raw data from a date file or event (version 3).
11///
12///////////////////////////////////////////////////////////////////////////////
13
14#include "AliRawReader.h"
15
16struct eventHeaderStruct;
17
18
19class AliRawReaderDateV3: public AliRawReader {
20 public :
21 AliRawReaderDateV3(void* event);
22 AliRawReaderDateV3(const char* fileName, Int_t eventNumber = -1);
23 virtual ~AliRawReaderDateV3();
24
25 void RequireHeader(Bool_t required = kTRUE)
26 {fRequireHeader = required;};
27
28 virtual UInt_t GetType() const;
29 virtual UInt_t GetRunNumber() const;
30 virtual const UInt_t* GetEventId() const;
31 virtual const UInt_t* GetTriggerPattern() const;
32 virtual const UInt_t* GetDetectorPattern() const;
33 virtual const UInt_t* GetAttributes() const;
34 virtual const UInt_t* GetSubEventAttributes() const;
35 virtual UInt_t GetLDCId() const;
36 virtual UInt_t GetGDCId() const;
37
38 virtual Int_t GetEquipmentSize() const;
39 virtual Int_t GetEquipmentType() const;
40 virtual Int_t GetEquipmentId() const;
41 virtual const UInt_t* GetEquipmentAttributes() const;
42 virtual Int_t GetEquipmentElementSize() const;
43
44 virtual Bool_t ReadHeader();
45 virtual Bool_t ReadNextData(UChar_t*& data);
46
47 virtual Bool_t Reset();
48
49 virtual Bool_t NextEvent();
50 virtual Bool_t RewindEvents();
51
52 virtual Int_t CheckData() const;
53
54 protected :
55 virtual Bool_t ReadNext(UChar_t* data, Int_t size);
56
57 Bool_t fRequireHeader; // if false, data without header is accepted
58
59 FILE* fFile; // DATE file
60 eventHeaderStruct* fEvent; // raw data super event
61 eventHeaderStruct* fSubEvent; // raw data sub event
62
63 UChar_t* fPosition; // current position in the raw data
64 UChar_t* fEnd; // end position of the current data block
65
66 private:
67 AliRawReaderDateV3(const AliRawReaderDateV3& rawReader);
68 AliRawReaderDateV3& operator = (const AliRawReaderDateV3& rawReader);
69
70 ClassDef(AliRawReaderDateV3, 0) // class for reading raw digits from a date file (version 3)
71};
72
73#endif