40 const char *keydatetime,
Int_t cycle,
const char *classname);
43 Bool_t IsKeyModified(
const char *keyname,
const char *keytitle,
const char *keydatime,
Int_t cycle,
const char *classname);
#define ClassDefOverride(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
Describe directory structure in memory.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
TKeySQL represents meta-information about object, which was written to SQL database.
Int_t WriteFile(Int_t=1, TFile *=nullptr) final
Write the encoded object supported by this key.
void * ReadObjectAny(const TClass *expectedClass) final
Read object of any type from SQL database.
void FillBuffer(char *&) final
Encode key header into output buffer.
void * ReadKeyObject(void *obj, const TClass *expectedClass)
Read object, associated with key, from database.
TObject * ReadObj() final
Read object derived from TObject class If it is not TObject or in case of error, return 0.
Long64_t fKeyId
! key identifier in KeysTables
void ReadBuffer(char *&) final
Decode input buffer.
void Keep() final
Set the "KEEP" status.
~TKeySQL() override=default
Long64_t fObjId
! stored object identifier
char * GetBuffer() const final
void Delete(Option_t *option="") final
Removes key from current directory Note: TKeySQL object is not deleted.
Long64_t GetSeekPdir() const final
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...
void DeleteBuffer() final
Delete key buffer(s).
Bool_t ReadFile() final
Read the key structure from the file.
Long64_t GetDBKeyId() const
Long64_t GetDBDirId() const
return sql id of parent directory
TKeySQL & operator=(const TKeySQL &)=delete
Long64_t GetSeekKey() const final
TObject * ReadObjWithBuffer(char *bufferRead) final
Read object derived from TObject class If it is not TObject or in case of error, return 0.
Long64_t GetDBObjId() const
Int_t Read(TObject *obj) final
To read an object from the file.
void StoreKeyObject(const void *obj, const TClass *cl)
Stores object, associated with key, into data tables.
TKeySQL(const TKeySQL &)=delete
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Int_t Read(const char *name) override
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.