library: libSQL
#include "TKeySQL.h"

TKeySQL


class description - 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 StoreObject(const void* obj, const TClass* cl) public:
TKeySQL(TSQLFile* file, const TObject* obj, const char* name) TKeySQL(TSQLFile* file, const void* obj, const TClass* cl, const char* name) TKeySQL(TSQLFile* file, Int_t keyid, Int_t dirid, Int_t objid, const char* name, const char* keydatetime, Int_t cycle, const char* classname) TKeySQL(const TKeySQL&) virtual ~TKeySQL() virtual void Browse(TBrowser* b) static TClass* Class() virtual void Delete(Option_t* option = "") virtual void DeleteBuffer() virtual void FillBuffer(char*&) virtual char* GetBuffer() const Int_t GetDBDirId() const Int_t GetDBKeyId() const Int_t GetDBObjId() const virtual Long64_t GetSeekKey() const virtual Long64_t GetSeekPdir() const virtual TClass* IsA() const virtual void Keep() TKeySQL& operator=(const TKeySQL&) virtual Int_t Read(TObject*) virtual void ReadBuffer(char*&) virtual void ReadFile() virtual TObject* ReadObj() virtual void* ReadObjectAny(const TClass* cl) virtual void SetBuffer() virtual void SetParent(const TObject*) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual Int_t Sizeof() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t WriteFile(Int_t = 1)

Data Members


    protected:
TSQLFile* fFile ! pointer on SQL file Int_t fKeyId ! key identifier in KeysTables Int_t fDirId ! parent directory identifier Int_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() : TKey(), fFile(0), fKeyId(-1)
 default constructor

TKeySQL(TSQLFile* file, const TObject* obj, const char* name) : TKey(), fFile(file), fKeyId(-1), fObjId(-1)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2

TKeySQL(TSQLFile* file, const void* obj, const TClass* cl, const char* name) : TKey(), fFile(file), fKeyId(-1), fObjId(-1)
 Creates TKeySQL and convert obj data to TSQLStructure via TBufferSQL2

TKeySQL(TSQLFile* file, Int_t keyid, Int_t dirid, Int_t objid, const char* name, const char* keydatetime, Int_t cycle, const char* classname) : TKey(), fFile(file), fKeyId(keyid), fDirId(dirid), fObjId(objid)
 Create TKeySQL object, which correponds to single entry in keys table

~TKeySQL()
 TKeySQL destructor

void Browse(TBrowser *b)
 Browse object corresponding to this key

void Delete(Option_t * /*option*/)
 Removes key from current directory
 Note: TKeySQL object is not deleted. You still have to call "delete key"

void StoreObject(const void* obj, const TClass* cl)
  convert object to sql statements and store them in DB

TObject* ReadObj()
 Read object derived from TObject class
 If it is not TObject or in case of error, return 0

void* ReadObjectAny(const TClass* /*cl*/)
 read object of any type from SQL database



Inline Functions


              Int_t Read(const char* name)
              Int_t GetDBKeyId() const
              Int_t GetDBDirId() const
              Int_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*)
               void ReadBuffer(char*&)
               void ReadFile()
               void SetBuffer()
               void SetParent(const TObject*)
              Int_t Sizeof() const
              Int_t WriteFile(Int_t = 1)
            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.5 2005/12/07 14:59:57 rdm 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.