#ifndef ROOT_TClassStreamer_h
#define ROOT_TClassStreamer_h
#include "Rtypes.h"
#include "TClassRef.h"
class TClassStreamer {
protected:
TClassStreamer() : fStreamer(0) {};
public:
TClassStreamer(ClassStreamerFunc_t pointer) : fStreamer(pointer), fOnFileClass() {};
TClassStreamer(const TClassStreamer &rhs) : fStreamer(rhs.fStreamer), fOnFileClass() {};
virtual void SetOnFileClass( const TClass* cl ) { fOnFileClass = const_cast<TClass*>(cl); }
virtual const TClass* GetOnFileClass() const { return fOnFileClass; }
virtual TClassStreamer *Generate() {
return new TClassStreamer(*this);
}
virtual ~TClassStreamer(){};
virtual void operator()(TBuffer &b, void *objp)
{
(*fStreamer)(b,objp);
}
private:
ClassStreamerFunc_t fStreamer;
protected:
TClassRef fOnFileClass;
};
#endif
Last change: Fri Sep 19 09:32:38 2008
Last generated: 2008-09-19 09:32
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.