library: libSQL #include "TKeySQL.h" |
TKeySQL
class description - source file - inheritance tree (.pdf)
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()
TKeySQL& operator=(const TKeySQL&)
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)
protected:
Long64_t fKeyId ! key identifier in KeysTables
Long64_t fObjId ! stored object identifer
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() :
TKey(),
fKeyId(-1),
fObjId(-1)
default constructor
TKeySQL(TDirectory* mother, const TObject* obj, const char* name, const char* title) :
TKey(mother),
fKeyId(-1),
fObjId(-1)
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) :
TKey(mother),
fKeyId(-1),
fObjId(-1)
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) :
TKey(mother),
fKeyId(keyid),
fObjId(objid)
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
void Delete(Option_t * /*option*/)
Removes key from current directory
Note: TKeySQL object is not deleted. You still have to call "delete key"
Long64_t GetDBDirId() const
return sql id of parent directory
void StoreKeyObject(const void* obj, const TClass* cl)
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)
Inline Functions
Long64_t GetDBKeyId() const
Long64_t GetDBObjId() const
void DeleteBuffer()
void FillBuffer(char*&)
char* GetBuffer() const
Long64_t GetSeekKey() const
Long64_t GetSeekPdir() const
void Keep()
Int_t Read(TObject* obj)
void ReadBuffer(char*&)
void ReadFile()
void SetBuffer()
Int_t WriteFile(Int_t = 1, TFile* = 0)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TKeySQL TKeySQL(const TKeySQL&)
TKeySQL& operator=(const TKeySQL&)
Author: Sergey Linev 20/11/2005
Last update: root/sql:$Name: $:$Id: TKeySQL.cxx,v 1.7 2006/02/01 18:57:41 pcanal 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.