Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RawBlockRegistry.h File Reference

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

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 84 of file RawBlockRegistry.h.


Generated on Sat Nov 21 22:48:51 2009 for loon by  doxygen 1.3.9.1