39 const char *keydatetime,
Int_t cycle,
const char *classname);
43 IsKeyModified(
const char *keyname,
const char *keytitle,
const char *keydatime,
Int_t cycle,
const char *classname);
#define ClassDef(name, id)
The ROOT global object gROOT contains a list of all defined classes.
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
TKeySQL represents meta-inforamtion about object, which was written to SQL database.
virtual char * GetBuffer() const
void * ReadKeyObject(void *obj, const TClass *expectedClass)
Read object, associated with key, from database.
Long64_t fKeyId
! key identifier in KeysTables
TKeySQL()
default constructor
virtual void DeleteBuffer()
Delete key buffer(s).
virtual void ReadBuffer(char *&)
Decode input buffer.
virtual void FillBuffer(char *&)
Encode key header into output buffer.
virtual ~TKeySQL()
TKeySQL destructor.
Long64_t fObjId
! stored object identifer
TKeySQL & operator=(const TKeySQL &)
virtual void Keep()
Set the "KEEP" status.
Bool_t IsKeyModified(const char *keyname, const char *keytitle, const char *keydatime, Int_t cycle, const char *classname)
Compares keydata with provided and return kTRUE if key was modified Used in TFile::StreamKeysForDirec...
virtual void Delete(Option_t *option="")
Removes key from current directory Note: TKeySQL object is not deleted.
virtual Bool_t ReadFile()
Read the key structure from the file.
Long64_t GetDBKeyId() const
virtual TObject * ReadObj()
Read object derived from TObject class If it is not TObject or in case of error, return 0.
virtual Long64_t GetSeekPdir() const
virtual void * ReadObjectAny(const TClass *expectedClass)
Read object of any type from SQL database.
Long64_t GetDBDirId() const
return sql id of parent directory
virtual Long64_t GetSeekKey() const
virtual TObject * ReadObjWithBuffer(char *bufferRead)
Read object derived from TObject class If it is not TObject or in case of error, return 0.
virtual Int_t WriteFile(Int_t=1, TFile *=0)
Write the encoded object supported by this key.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
Long64_t GetDBObjId() const
void StoreKeyObject(const void *obj, const TClass *cl)
Stores object, associated with key, into data tables.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual Int_t Read(const char *name)
Read contents of object with specified name from the current directory.
char * fBuffer
Object buffer.
Mother of all ROOT objects.
Access an SQL db via the TFile interface.