TKeySQL Class Reference

#include <TKeySQL.h>

Inheritance diagram for TKeySQL:

TKey TKey TNamed TNamed TNamed TNamed TObject TObject TObject TObject TObject TObject TObject TObject List of all members.

Public Member Functions

 TKeySQL (TDirectory *mother, const TObject *obj, const char *name, const char *title=0)
 stored object identifer
 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)
virtual ~TKeySQL ()
Bool_t IsKeyModified (const char *keyname, const char *keytitle, const char *keydatime, Int_t cycle, const char *classname)
Long64_t GetDBKeyId () const
Long64_t GetDBObjId () const
Long64_t GetDBDirId () const
virtual void Delete (Option_t *option="")
virtual void DeleteBuffer ()
virtual void FillBuffer (char *&)
virtual char * GetBuffer () const
virtual Long64_t GetSeekKey () const
virtual Long64_t GetSeekPdir () const
virtual void Keep ()
virtual Int_t Read (TObject *obj)
virtual TObjectReadObj ()
virtual TObjectReadObjWithBuffer (char *bufferRead)
virtual void * ReadObjectAny (const TClass *expectedClass)
virtual void ReadBuffer (char *&)
virtual void ReadFile ()
virtual void SetBuffer ()
virtual Int_t WriteFile (Int_t=1, TFile *=0)
 TKeySQL (TDirectory *mother, const TObject *obj, const char *name, const char *title=0)
 stored object identifer
 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)
virtual ~TKeySQL ()
Bool_t IsKeyModified (const char *keyname, const char *keytitle, const char *keydatime, Int_t cycle, const char *classname)
Long64_t GetDBKeyId () const
Long64_t GetDBObjId () const
Long64_t GetDBDirId () const
virtual void Delete (Option_t *option="")
virtual void DeleteBuffer ()
virtual void FillBuffer (char *&)
virtual char * GetBuffer () const
virtual Long64_t GetSeekKey () const
virtual Long64_t GetSeekPdir () const
virtual void Keep ()
virtual Int_t Read (TObject *obj)
virtual TObjectReadObj ()
virtual TObjectReadObjWithBuffer (char *bufferRead)
virtual void * ReadObjectAny (const TClass *expectedClass)
virtual void ReadBuffer (char *&)
virtual void ReadFile ()
virtual void SetBuffer ()
virtual Int_t WriteFile (Int_t=1, TFile *=0)

Protected Member Functions

 TKeySQL ()
virtual Int_t Read (const char *name)
 pointer to mother directory
void StoreKeyObject (const void *obj, const TClass *cl)
void * ReadKeyObject (void *obj, const TClass *expectedClass)
 TKeySQL ()
virtual Int_t Read (const char *name)
 pointer to mother directory
void StoreKeyObject (const void *obj, const TClass *cl)
void * ReadKeyObject (void *obj, const TClass *expectedClass)

Protected Attributes

Long64_t fKeyId
Long64_t fObjId
 key identifier in KeysTables

Private Member Functions

 TKeySQL (const TKeySQL &)
TKeySQLoperator= (const TKeySQL &)
 TKeySQL (const TKeySQL &)
TKeySQLoperator= (const TKeySQL &)

Detailed Description

Definition at line 30 of file TKeySQL.h.


Constructor & Destructor Documentation

TKeySQL::TKeySQL ( const TKeySQL  )  [private]

TKeySQL::TKeySQL (  )  [protected]

Definition at line 36 of file TKeySQL.cxx.

TKeySQL::TKeySQL ( TDirectory mother,
const TObject obj,
const char *  name,
const char *  title = 0 
)

stored object identifer

Definition at line 45 of file TKeySQL.cxx.

References TKey::fClassName, TNamed::SetName(), TNamed::SetTitle(), and StoreKeyObject().

TKeySQL::TKeySQL ( TDirectory mother,
const void *  obj,
const TClass cl,
const char *  name,
const char *  title = 0 
)

Definition at line 62 of file TKeySQL.cxx.

References TNamed::SetName(), TNamed::SetTitle(), and StoreKeyObject().

TKeySQL::TKeySQL ( TDirectory mother,
Long64_t  keyid,
Long64_t  objid,
const char *  name,
const char *  title,
const char *  keydatetime,
Int_t  cycle,
const char *  classname 
)

Definition at line 78 of file TKeySQL.cxx.

References TKey::fClassName, TKey::fCycle, TKey::fDatime, TNamed::SetName(), and TNamed::SetTitle().

TKeySQL::~TKeySQL (  )  [virtual]

Definition at line 96 of file TKeySQL.cxx.

TKeySQL::TKeySQL ( const TKeySQL  )  [private]

TKeySQL::TKeySQL (  )  [protected]

TKeySQL::TKeySQL ( TDirectory mother,
const TObject obj,
const char *  name,
const char *  title = 0 
)

stored object identifer

TKeySQL::TKeySQL ( TDirectory mother,
const void *  obj,
const TClass cl,
const char *  name,
const char *  title = 0 
)

TKeySQL::TKeySQL ( TDirectory mother,
Long64_t  keyid,
Long64_t  objid,
const char *  name,
const char *  title,
const char *  keydatetime,
Int_t  cycle,
const char *  classname 
)

virtual TKeySQL::~TKeySQL (  )  [virtual]


Member Function Documentation

TKeySQL& TKeySQL::operator= ( const TKeySQL  )  [private]

virtual Int_t TKeySQL::Read ( const char *  name  )  [inline, protected, virtual]

pointer to mother directory

Reimplemented from TKey.

Definition at line 39 of file TKeySQL.h.

References TKey::Read().

void TKeySQL::StoreKeyObject ( const void *  obj,
const TClass cl 
) [protected]

Definition at line 157 of file TKeySQL.cxx.

References TDirectory::AppendKey(), TObject::Error(), TKey::fClassName, TKey::fCycle, TKey::fDatime, fKeyId, fObjId, GetDBKeyId(), GetDBObjId(), TKey::GetFile(), TDirectory::GetListOfKeys(), TKey::GetMotherDir(), TList::Remove(), and TDatime::Set().

Referenced by TKeySQL().

void * TKeySQL::ReadKeyObject ( void *  obj,
const TClass expectedClass 
) [protected]

Definition at line 260 of file TKeySQL.cxx.

References buffer, TClass::Destructor(), TClass::GetBaseClassOffset(), TClass::GetClassInfo(), GetDBKeyId(), GetDBObjId(), TKey::GetFile(), TBuffer::kRead, and TObject::Warning().

Referenced by Read(), ReadObj(), ReadObjectAny(), and ReadObjWithBuffer().

Bool_t TKeySQL::IsKeyModified ( const char *  keyname,
const char *  keytitle,
const char *  keydatime,
Int_t  cycle,
const char *  classname 
)

Definition at line 102 of file TKeySQL.cxx.

References TDatime::AsSQLString(), TKey::GetClassName(), TKey::GetCycle(), TKey::GetDatime(), TNamed::GetName(), TKey::GetTitle(), kFALSE, and kTRUE.

Referenced by TSQLFile::StreamKeysForDirectory().

Long64_t TKeySQL::GetDBKeyId (  )  const [inline]

Definition at line 56 of file TKeySQL.h.

References fKeyId.

Referenced by Delete(), TSQLFile::DirCreateEntry(), TSQLFile::FindSQLKey(), ReadKeyObject(), ReadObj(), ReadObjWithBuffer(), TSQLFile::ReadSpecialObject(), StoreKeyObject(), TSQLFile::UpdateKeyData(), and TSQLFile::WriteKeyData().

Long64_t TKeySQL::GetDBObjId (  )  const [inline]

Definition at line 57 of file TKeySQL.h.

References fObjId.

Referenced by TSQLFile::DirWriteHeader(), GetSeekKey(), ReadKeyObject(), TSQLFile::ReadSpecialObject(), StoreKeyObject(), and TSQLFile::WriteKeyData().

Long64_t TKeySQL::GetDBDirId (  )  const

Definition at line 149 of file TKeySQL.cxx.

References TKey::GetMotherDir(), and TDirectory::GetSeekDir().

Referenced by GetSeekPdir(), and TSQLFile::WriteKeyData().

void TKeySQL::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TKey.

Definition at line 135 of file TKeySQL.cxx.

References TKey::fMotherDir, GetDBKeyId(), TKey::GetFile(), TDirectory::GetListOfKeys(), and TList::Remove().

virtual void TKeySQL::DeleteBuffer (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 62 of file TKeySQL.h.

virtual void TKeySQL::FillBuffer ( char *&   )  [inline, virtual]

Reimplemented from TKey.

Definition at line 63 of file TKeySQL.h.

virtual char* TKeySQL::GetBuffer (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 64 of file TKeySQL.h.

virtual Long64_t TKeySQL::GetSeekKey (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 65 of file TKeySQL.h.

References GetDBObjId().

virtual Long64_t TKeySQL::GetSeekPdir (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 66 of file TKeySQL.h.

References GetDBDirId().

virtual void TKeySQL::Keep (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 67 of file TKeySQL.h.

Int_t TKeySQL::Read ( TObject obj  )  [virtual]

Reimplemented from TKey.

Definition at line 189 of file TKeySQL.cxx.

References ReadKeyObject().

TObject * TKeySQL::ReadObj (  )  [virtual]

Reimplemented from TKey.

Definition at line 204 of file TKeySQL.cxx.

References TDirectory::Append(), xmlio::Class, dir(), TKey::fMotherDir, GetDBKeyId(), TROOT::GetForceStyle(), TNamed::GetName(), TKey::GetTitle(), gROOT, ReadKeyObject(), and TObject::UseCurrentStyle().

TObject * TKeySQL::ReadObjWithBuffer ( char *  bufferRead  )  [virtual]

Reimplemented from TKey.

Definition at line 228 of file TKeySQL.cxx.

References TDirectory::Append(), xmlio::Class, dir(), TKey::fMotherDir, GetDBKeyId(), TROOT::GetForceStyle(), TNamed::GetName(), TKey::GetTitle(), gROOT, ReadKeyObject(), and TObject::UseCurrentStyle().

void * TKeySQL::ReadObjectAny ( const TClass expectedClass  )  [virtual]

Reimplemented from TKey.

Definition at line 252 of file TKeySQL.cxx.

References ReadKeyObject().

virtual void TKeySQL::ReadBuffer ( char *&   )  [inline, virtual]

Reimplemented from TKey.

Definition at line 74 of file TKeySQL.h.

virtual void TKeySQL::ReadFile (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 75 of file TKeySQL.h.

virtual void TKeySQL::SetBuffer (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 76 of file TKeySQL.h.

References TKey::fBuffer.

virtual Int_t TKeySQL::WriteFile ( Int_t  = 1,
TFile = 0 
) [inline, virtual]

Reimplemented from TKey.

Definition at line 77 of file TKeySQL.h.

TKeySQL& TKeySQL::operator= ( const TKeySQL  )  [private]

virtual Int_t TKeySQL::Read ( const char *  name  )  [inline, protected, virtual]

pointer to mother directory

Reimplemented from TKey.

Definition at line 39 of file TKeySQL.h.

References TKey::Read().

void TKeySQL::StoreKeyObject ( const void *  obj,
const TClass cl 
) [protected]

void* TKeySQL::ReadKeyObject ( void *  obj,
const TClass expectedClass 
) [protected]

Bool_t TKeySQL::IsKeyModified ( const char *  keyname,
const char *  keytitle,
const char *  keydatime,
Int_t  cycle,
const char *  classname 
)

Long64_t TKeySQL::GetDBKeyId (  )  const [inline]

Definition at line 56 of file TKeySQL.h.

References fKeyId.

Long64_t TKeySQL::GetDBObjId (  )  const [inline]

Definition at line 57 of file TKeySQL.h.

References fObjId.

Long64_t TKeySQL::GetDBDirId (  )  const

virtual void TKeySQL::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TKey.

virtual void TKeySQL::DeleteBuffer (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 62 of file TKeySQL.h.

virtual void TKeySQL::FillBuffer ( char *&   )  [inline, virtual]

Reimplemented from TKey.

Definition at line 63 of file TKeySQL.h.

virtual char* TKeySQL::GetBuffer (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 64 of file TKeySQL.h.

virtual Long64_t TKeySQL::GetSeekKey (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 65 of file TKeySQL.h.

References GetDBObjId().

virtual Long64_t TKeySQL::GetSeekPdir (  )  const [inline, virtual]

Reimplemented from TKey.

Definition at line 66 of file TKeySQL.h.

References GetDBDirId().

virtual void TKeySQL::Keep (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 67 of file TKeySQL.h.

virtual Int_t TKeySQL::Read ( TObject obj  )  [virtual]

Reimplemented from TKey.

virtual TObject* TKeySQL::ReadObj (  )  [virtual]

Reimplemented from TKey.

virtual TObject* TKeySQL::ReadObjWithBuffer ( char *  bufferRead  )  [virtual]

Reimplemented from TKey.

virtual void* TKeySQL::ReadObjectAny ( const TClass expectedClass  )  [virtual]

Reimplemented from TKey.

virtual void TKeySQL::ReadBuffer ( char *&   )  [inline, virtual]

Reimplemented from TKey.

Definition at line 74 of file TKeySQL.h.

virtual void TKeySQL::ReadFile (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 75 of file TKeySQL.h.

virtual void TKeySQL::SetBuffer (  )  [inline, virtual]

Reimplemented from TKey.

Definition at line 76 of file TKeySQL.h.

References TKey::fBuffer.

virtual Int_t TKeySQL::WriteFile ( Int_t  = 1,
TFile = 0 
) [inline, virtual]

Reimplemented from TKey.

Definition at line 77 of file TKeySQL.h.


Member Data Documentation

Long64_t TKeySQL::fKeyId [protected]

Definition at line 43 of file TKeySQL.h.

Referenced by GetDBKeyId(), and StoreKeyObject().

Long64_t TKeySQL::fObjId [protected]

key identifier in KeysTables

Definition at line 44 of file TKeySQL.h.

Referenced by GetDBObjId(), and StoreKeyObject().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:42:13 2011 for ROOT_528-00b_version by  doxygen 1.5.1