]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Method ReadNext moved to public (C.Cheshkov)
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 7e35774cc4bde21996fcf37e0d52d51b8fe5fce3..d07e9101c5d15e35e0e94108ff362fb859111128 100644 (file)
@@ -30,6 +30,8 @@ class AliRawReader: public TObject {
     void             SkipInvalid(Bool_t skip = kTRUE)
       {fSkipInvalid = skip;};
     void             SelectEvents(Int_t type);
+    void             RequireHeader(Bool_t required = kTRUE)
+      {fRequireHeader = required;};
 
     virtual UInt_t   GetType() const = 0;
     virtual UInt_t   GetRunNumber() const = 0;
@@ -83,6 +85,7 @@ class AliRawReader: public TObject {
     virtual Bool_t   ReadNextInt(UInt_t& data);
     virtual Bool_t   ReadNextShort(UShort_t& data);
     virtual Bool_t   ReadNextChar(UChar_t& data);
+    virtual Bool_t   ReadNext(UChar_t* data, Int_t size) = 0;
 
     virtual Bool_t   Reset() = 0;
 
@@ -100,7 +103,7 @@ class AliRawReader: public TObject {
     Bool_t           IsSelected() const;
     Bool_t           IsEventSelected() const;
 
-    virtual Bool_t   ReadNext(UChar_t* data, Int_t size) = 0;
+    Bool_t           fRequireHeader; // if false, data without header is accepted
 
     AliRawDataHeader* fHeader;     // current data header
     Int_t            fCount;       // counter of bytes to be read for current DDL