PoolDbIOHandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef POOLDB_POOLDBIOHANDLER_H
00010 #define POOLDB_POOLDBIOHANDLER_H
00011 #include "TClassStreamer.h"
00012 #include "Reflex/Reflex.h"
00013
00014 template <class T> class PoolDbIOHandler : public TClassStreamer {
00015 protected:
00016 typedef ROOT::Reflex::Type TypeH;
00018 TypeH m_type;
00020 TClass* m_root;
00021 public:
00023 PoolDbIOHandler(const TypeH& typ, TClass* c) : m_type(typ), m_root(c) { }
00024
00026 virtual ~PoolDbIOHandler() { }
00027
00029 virtual void operator()(TBuffer &b, void *obj);
00030
00032
00034 virtual void get(TBuffer &b, void* obj);
00035
00037
00039 virtual void put(TBuffer &b, void* obj);
00040 };
00041
00042 #endif // POOLDB_POOLDBIOHANDLER_H