#ifndef __JROOT__JCLASSSTREAMER__ #define __JROOT__JCLASSSTREAMER__ #include "TObject.h" #ifndef __CINT__ #include "JROOT/JRootDictionary.hh" #endif /** * \author mdejong */ namespace JROOT {} namespace JPP { using namespace JROOT; } namespace JROOT { /** * Auxiliary class to add the I/O capabilities of the given template class to the general JRootDictionary class. */ template struct JClassStreamer { #ifdef __CINT__ /** * This type definition is needed for compatibility with cint. */ typedef TObject JObject; #else /** * This class adds the I/O capabilities of the given template class to the general JRootDictionary class. */ struct JObject : public TObject { JObject() { JRootDictionary::getInstance().add(); } }; #endif }; } #endif