RawBlockRegistry.h File Reference

#include <list>
#include "RawData/RawBlockProxy.h"
#include "OnlineUtil/rawBlockIds.h"
#include <iosfwd>
#include <iostream>
#include <cassert>
#include <cstdlib>

Go to the source code of this file.

Classes

class  RawBlockRegistry
struct  RawBlockRegistry::Cleaner

Defines

#define REGISTERRAWBLOCK(CLASS, MAJORID, ISDCS)

Define Documentation

#define REGISTERRAWBLOCK ( CLASS,
MAJORID,
ISDCS   ) 
Value:
static class gs__Register__##CLASS##__ : public RawBlockProxy {      \
public:                                                              \
  gs__Register__##CLASS##__() {                                      \
    fName    = "" #CLASS "";                                         \
    fIsDCS   = ISDCS;                                                \
    const int majorMask = 0xffff;                                    \
    fMajorId = MAJORID & majorMask;                                  \
    assert((MAJORID & majorMask) == MAJORID);                        \
    RawBlockRegistry::Instance().Register(this);                     \
  }                                                                  \
  RawDataBlock *CreateRawDataBlock(const Int_t* block) {             \
    RawDataBlock *rdb = new CLASS(block);                            \
    return rdb;                                                      \
  }                                                                  \
} gs__module__##CLASS##__proxy__

Definition at line 85 of file RawBlockRegistry.h.


Generated on 20 May 2019 for loon by  doxygen 1.6.1