library: libSQL
#include "TKeySQL.h"

TKeySQL


class description - header file - source file - inheritance tree (.pdf)

class TKeySQL : public TKey

Inheritance Chart:
TObject
<-
TNamed
<-
TKey
<-
TKeySQL

    protected:
TKeySQL() virtual Int_t Read(const char* name) void* ReadKeyObject(void* obj, const TClass* expectedClass) void StoreKeyObject(const void* obj, const TClass* cl) public:
TKeySQL(TDirectory* mother, const TObject* obj, const char* name, const char* title = "0") TKeySQL(TDirectory* mother, const void* obj, const TClass* cl, const char* name, const char* title = "0") TKeySQL(TDirectory* mother, Long64_t keyid, Long64_t objid, const char* name, const char* title, const char* keydatetime, Int_t cycle, const char* classname) TKeySQL(const TKeySQL&) virtual ~TKeySQL() static TClass* Class() virtual void Delete(Option_t* option = "") virtual void DeleteBuffer() virtual void FillBuffer(char*&) virtual char* GetBuffer() const Long64_t GetDBDirId() const Long64_t GetDBKeyId() const Long64_t GetDBObjId() const virtual Long64_t GetSeekKey() const virtual Long64_t GetSeekPdir() const virtual TClass* IsA() const Bool_t IsKeyModified(const char* keyname, const char* keytitle, const char* keydatime, Int_t cycle, const char* classname) virtual void Keep() virtual Int_t Read(TObject* obj) virtual void ReadBuffer(char*&) virtual void ReadFile() virtual TObject* ReadObj() virtual void* ReadObjectAny(const TClass* expectedClass) virtual void SetBuffer() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t WriteFile(Int_t = 1, TFile* = 0)

Data Members


    protected:
Long64_t fKeyId ! key identifier in KeysTables Long64_t fObjId ! stored object identifer

Class Description

________________________________________________________________________

 TKeySQL is represents a metainforamtion about object, which was written to
 SQL database. It keeps object id, which used to locate object data
 from database tables.
________________________________________________________________________
TKeySQL()
 default constructor
TKeySQL(TDirectory* mother, const TObject* obj, const char* name, const char* title)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2
TKeySQL(TDirectory* mother, const void* obj, const TClass* cl, const char* name, const char* title)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2
TKeySQL(TDirectory* mother, Long64_t keyid, Long64_t objid, const char* name, const char* title, const char* keydatetime, Int_t cycle, const char* classname)
 Create TKeySQL object, which correponds to single entry in keys table
~TKeySQL()
 TKeySQL destructor
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::StreamKeysForDirectory() method to verify data for that keys
 should be updated
Long64_t GetDBDirId()
 return sql id of parent directory
void StoreKeyObject(const void* obj, const TClass* cl)
 Stores object, associated with key, into data tables
Int_t Read(TObject* tobj)
 To read an object from the file.
 The object associated to this key is read from the file into memory.
 Before invoking this function, obj has been created via the
 default constructor.
TObject* ReadObj()
 Read object derived from TObject class
 If it is not TObject or in case of error, return 0
void* ReadObjectAny(const TClass* expectedClass)
 read object of any type from SQL database
void* ReadKeyObject(void* obj, const TClass* expectedClass)
 Read object, associated with key, from database
TKeySQL()
Int_t Read(const char *name)
Long64_t GetDBKeyId()
Long64_t GetDBObjId()
void Delete(Option_t *option="")
 redefined TKey Methods
void DeleteBuffer()
void FillBuffer(char *&)
Long64_t GetSeekKey()
Long64_t GetSeekPdir()
void Keep()
void ReadBuffer(char *&)
void ReadFile()
void SetBuffer()
Int_t WriteFile(Int_t =1, TFile* = 0)

Author: Sergey Linev 20/11/2005
Last update: root/sql:$Name: $:$Id: TKeySQL.cxx,v 1.10 2006/06/22 08:21:22 brun Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.