#ifndef ROOT_TMemberStreamer
#define ROOT_TMemberStreamer
#include "Rtypes.h"
#include "TClassRef.h"
class TMemberStreamer {
protected:
TMemberStreamer() : fStreamer(0) {};
public:
TMemberStreamer(MemberStreamerFunc_t pointer) : fStreamer(pointer) {};
TMemberStreamer(const TMemberStreamer &rhs) : fStreamer(rhs.fStreamer) {};
virtual ~TMemberStreamer(){};
virtual void SetOnFileClass( const TClass* cl ) { fOnFileClass = const_cast<TClass*>(cl); }
virtual const TClass* GetOnFileClass() const { return fOnFileClass; }
virtual void operator()(TBuffer &b, void *pmember, Int_t size=0)
{
(*fStreamer)(b,pmember,size);
}
private:
MemberStreamerFunc_t fStreamer;
TClassRef fOnFileClass;
};
#endif
Last change: Fri Sep 19 09:32:59 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.