// @(#)root/sql:$Id$ // Author: Sergey Linev 20/11/2005 /************************************************************************* * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TKeySQL #define ROOT_TKeySQL #ifndef ROOT_TKey #include "TKey.h" #endif class TSQLFile; class TKeySQL : public TKey { private: TKeySQL(const TKeySQL&); // TKeySQL objects are not copiable. TKeySQL& operator=(const TKeySQL&); // TKeySQL objects are not copiable. protected: TKeySQL(); virtual Int_t Read(const char *name) { return TKey::Read(name); } void StoreKeyObject(const void* obj, const TClass* cl); void* ReadKeyObject(void* obj, const TClass* expectedClass); Long64_t fKeyId; /// 0 ? GetDBObjId() : 0; } virtual Long64_t GetSeekPdir() const { return GetDBDirId() > 0 ? GetDBDirId() : 0; } virtual void Keep() {} virtual Int_t Read(TObject* obj); virtual TObject *ReadObj(); virtual TObject *ReadObjWithBuffer(char *bufferRead); virtual void *ReadObjectAny(const TClass *expectedClass); virtual void ReadBuffer(char *&) {} virtual Bool_t ReadFile() { return kTRUE; } virtual void SetBuffer() { fBuffer = 0; } virtual Int_t WriteFile(Int_t =1, TFile* = 0) { return 0; } ClassDef(TKeySQL,1) // a special TKey for SQL data base }; #endif