TSQLStructure Class Reference

#include <TSQLStructure.h>

Inheritance diagram for TSQLStructure:

TObject TObject List of all members.

Public Types

enum  ESQLTypes
enum  ESQLColumns
enum  ESQLIdType
enum  ESQLTypes
enum  ESQLColumns
enum  ESQLIdType

Public Member Functions

 TSQLStructure ()
virtual ~TSQLStructure ()
TSQLStructureGetParent () const
void SetParent (TSQLStructure *p)
Int_t NumChilds () const
TSQLStructureGetChild (Int_t n) const
void SetType (Int_t typ)
Int_t GetType () const
void SetObjectRef (Long64_t refid, const TClass *cl)
void SetObjectPointer (Long64_t ptrid)
void SetVersion (const TClass *cl, Int_t version=-100)
void SetClassStreamer (const TClass *cl)
void SetStreamerInfo (const TStreamerInfo *info)
void SetStreamerElement (const TStreamerElement *elem, Int_t number)
void SetCustomClass (const TClass *cl, Version_t version)
void SetCustomElement (TStreamerElement *elem)
void SetValue (const char *value, const char *tname=0)
void SetArrayIndex (Int_t indx, Int_t cnt=1)
void SetArray (Int_t sz=-1)
void ChangeValueOnly (const char *value)
TClassGetObjectClass () const
TClassGetVersionClass () const
TStreamerInfoGetStreamerInfo () const
TStreamerElementGetElement () const
Int_t GetElementNumber () const
TClassGetCustomClass () const
Version_t GetCustomClassVersion () const
Bool_t GetClassInfo (TClass *&cl, Version_t &version)
const char * GetValueType () const
const char * GetValue () const
Int_t GetArrayIndex () const
Int_t GetRepeatCounter () const
void Add (TSQLStructure *child)
void AddVersion (const TClass *cl, Int_t version=-100)
void AddValue (const char *value, const char *tname=0)
void ChildArrayIndex (Int_t index, Int_t cnt=1)
Long64_t DefineObjectId (Bool_t recursive=kTRUE)
void SetObjectData (TSQLObjectData *objdata)
void AddObjectData (TSQLObjectData *objdata)
TSQLObjectDataGetObjectData (Bool_t search=false)
virtual void Print (Option_t *option="") const
void PrintLevel (Int_t level) const
Bool_t ConvertToTables (TSQLFile *f, Long64_t keyid, TObjArray *cmds)
Int_t LocateElementColumn (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data)
 ClassDef (TSQLStructure, 1)
 TSQLStructure ()
virtual ~TSQLStructure ()
TSQLStructureGetParent () const
void SetParent (TSQLStructure *p)
Int_t NumChilds () const
TSQLStructureGetChild (Int_t n) const
void SetType (Int_t typ)
Int_t GetType () const
void SetObjectRef (Long64_t refid, const TClass *cl)
void SetObjectPointer (Long64_t ptrid)
void SetVersion (const TClass *cl, Int_t version=-100)
void SetClassStreamer (const TClass *cl)
void SetStreamerInfo (const TStreamerInfo *info)
void SetStreamerElement (const TStreamerElement *elem, Int_t number)
void SetCustomClass (const TClass *cl, Version_t version)
void SetCustomElement (TStreamerElement *elem)
void SetValue (const char *value, const char *tname=0)
void SetArrayIndex (Int_t indx, Int_t cnt=1)
void SetArray (Int_t sz=-1)
void ChangeValueOnly (const char *value)
TClassGetObjectClass () const
TClassGetVersionClass () const
TStreamerInfoGetStreamerInfo () const
TStreamerElementGetElement () const
Int_t GetElementNumber () const
TClassGetCustomClass () const
Version_t GetCustomClassVersion () const
Bool_t GetClassInfo (TClass *&cl, Version_t &version)
const char * GetValueType () const
const char * GetValue () const
Int_t GetArrayIndex () const
Int_t GetRepeatCounter () const
void Add (TSQLStructure *child)
void AddVersion (const TClass *cl, Int_t version=-100)
void AddValue (const char *value, const char *tname=0)
void ChildArrayIndex (Int_t index, Int_t cnt=1)
Long64_t DefineObjectId (Bool_t recursive=kTRUE)
void SetObjectData (TSQLObjectData *objdata)
void AddObjectData (TSQLObjectData *objdata)
TSQLObjectDataGetObjectData (Bool_t search=false)
virtual void Print (Option_t *option="") const
void PrintLevel (Int_t level) const
Bool_t ConvertToTables (TSQLFile *f, Long64_t keyid, TObjArray *cmds)
Int_t LocateElementColumn (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data)
 ClassDef (TSQLStructure, 1)

Static Public Member Functions

static Bool_t UnpackTObject (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
static Bool_t UnpackTString (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
static Bool_t IsNumericType (Int_t typ)
static const char * GetSimpleTypeName (Int_t typ)
static TString MakeArrayIndex (TStreamerElement *elem, Int_t n)
static Int_t DefineElementColumnType (TStreamerElement *elem, TSQLFile *f)
static TString DefineElementColumnName (TStreamerElement *elem, TSQLFile *f, Int_t indx=0)
static void AddStrBrackets (TString &s, const char *quote)
static Bool_t UnpackTObject (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
static Bool_t UnpackTString (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
static Bool_t IsNumericType (Int_t typ)
static const char * GetSimpleTypeName (Int_t typ)
static TString MakeArrayIndex (TStreamerElement *elem, Int_t n)
static Int_t DefineElementColumnType (TStreamerElement *elem, TSQLFile *f)
static TString DefineElementColumnName (TStreamerElement *elem, TSQLFile *f, Int_t indx=0)
static void AddStrBrackets (TString &s, const char *quote)

Protected Member Functions

Bool_t CheckNormalClassPair (TSQLStructure *vers, TSQLStructure *info)
Long64_t FindMaxObjectId ()
void PerformConversion (TSqlRegistry *reg, TSqlRawBuffer *blobs, const char *topname, Bool_t useblob=kFALSE)
Bool_t StoreObject (TSqlRegistry *reg, Long64_t objid, TClass *cl, Bool_t registerobj=kTRUE)
Bool_t StoreObjectInNormalForm (TSqlRegistry *reg)
Bool_t StoreClassInNormalForm (TSqlRegistry *reg)
Bool_t StoreElementInNormalForm (TSqlRegistry *reg, TSQLTableData *columns)
Bool_t TryConvertObjectArray (TSqlRegistry *reg, TSqlRawBuffer *blobs)
Bool_t StoreTObject (TSqlRegistry *reg)
Bool_t StoreTString (TSqlRegistry *reg)
Bool_t RecognizeTString (const char *&value)
Bool_t CheckNormalClassPair (TSQLStructure *vers, TSQLStructure *info)
Long64_t FindMaxObjectId ()
void PerformConversion (TSqlRegistry *reg, TSqlRawBuffer *blobs, const char *topname, Bool_t useblob=kFALSE)
Bool_t StoreObject (TSqlRegistry *reg, Long64_t objid, TClass *cl, Bool_t registerobj=kTRUE)
Bool_t StoreObjectInNormalForm (TSqlRegistry *reg)
Bool_t StoreClassInNormalForm (TSqlRegistry *reg)
Bool_t StoreElementInNormalForm (TSqlRegistry *reg, TSQLTableData *columns)
Bool_t TryConvertObjectArray (TSqlRegistry *reg, TSqlRawBuffer *blobs)
Bool_t StoreTObject (TSqlRegistry *reg)
Bool_t StoreTString (TSqlRegistry *reg)
Bool_t RecognizeTString (const char *&value)

Protected Attributes

TSQLStructurefParent
Int_t fType
const void * fPointer
TString fValue
Int_t fArrayIndex
Int_t fRepeatCnt
TObjArray fChilds
TSQLStructurefParent
const void * fPointer

Detailed Description

Definition at line 105 of file TSQLStructure.h.


Member Enumeration Documentation

enum TSQLStructure::ESQLTypes

Definition at line 198 of file TSQLStructure.h.

enum TSQLStructure::ESQLColumns

Definition at line 212 of file TSQLStructure.h.

enum TSQLStructure::ESQLIdType

Definition at line 226 of file TSQLStructure.h.

enum TSQLStructure::ESQLTypes

Definition at line 198 of file TSQLStructure.h.

enum TSQLStructure::ESQLColumns

Definition at line 212 of file TSQLStructure.h.

enum TSQLStructure::ESQLIdType

Definition at line 226 of file TSQLStructure.h.


Constructor & Destructor Documentation

TSQLStructure::TSQLStructure (  ) 

Definition at line 363 of file TSQLStructure.cxx.

TSQLStructure::~TSQLStructure (  )  [virtual]

Definition at line 377 of file TSQLStructure.cxx.

References TObjArray::Delete(), fChilds, fPointer, GetType(), kSqlCustomElement, and kSqlObjectData.

TSQLStructure::TSQLStructure (  ) 

virtual TSQLStructure::~TSQLStructure (  )  [virtual]


Member Function Documentation

Bool_t TSQLStructure::CheckNormalClassPair ( TSQLStructure vers,
TSQLStructure info 
) [protected]

Definition at line 1809 of file TSQLStructure.cxx.

References GetClassInfo(), TClass::GetClassVersion(), GetType(), GetVersionClass(), kFALSE, kSqlVersion, and kTRUE.

Referenced by StoreObjectInNormalForm(), and TryConvertObjectArray().

Long64_t TSQLStructure::FindMaxObjectId (  )  [protected]

Definition at line 1233 of file TSQLStructure.cxx.

References DefineObjectId(), FindMaxObjectId(), GetChild(), kFALSE, Long64_t, max, n, and NumChilds().

Referenced by ConvertToTables(), and FindMaxObjectId().

void TSQLStructure::PerformConversion ( TSqlRegistry reg,
TSqlRawBuffer blobs,
const char *  topname,
Bool_t  useblob = kFALSE 
) [protected]

Definition at line 1276 of file TSQLStructure.cxx.

References TSqlRawBuffer::AddLine(), TSqlRegistry::AddLongString(), sqlio::Array, TObjArray::At(), buf, sqlio::CharStar, TSQLFile::CodeLongString(), TString::Data(), DefineObjectId(), TObject::Error(), TSqlRegistry::f, fArrayIndex, fChilds, TSqlRegistry::fCurrentObjId, TString::Form(), fPointer, fRepeatCnt, fType, fValue, GetChild(), TObjArray::GetLast(), TNamed::GetName(), TSqlRegistry::GetNextObjId(), GetObjectClass(), GetStreamerInfo(), GetValue(), sqlio::IndexSepar, info, kFALSE, kSqlArray, kSqlCustomElement, kSqlElement, kSqlObject, kSqlPointer, kSqlStreamerInfo, kSqlValue, kSqlVersion, kTRUE, TString::Length(), Long64_t, n, NumChilds(), sqlio::ObjectInst, sqlio::ObjectPtr, sqlio::ObjectRef, PerformConversion(), size, TSQLFile::SQLNameSeparator(), TSQLFile::SQLSmallTextTypeLimit(), StoreObject(), value, and sqlio::Version.

Referenced by PerformConversion(), and StoreObject().

Bool_t TSQLStructure::StoreObject ( TSqlRegistry reg,
Long64_t  objid,
TClass cl,
Bool_t  registerobj = kTRUE 
) [protected]

Definition at line 1383 of file TSQLStructure.cxx.

References TSqlRegistry::AddRegCmd(), xmlio::Class, TSqlRegistry::f, TSqlRegistry::fCurrentObjClass, TSqlRegistry::fCurrentObjId, gDebug, GetChild(), GetElement(), TNamed::GetName(), GetStreamerInfo(), GetType(), TSqlRawBuffer::IsAnyData(), kFALSE, kSqlStreamerInfo, kTRUE, Long64_t, n, NumChilds(), PerformConversion(), TSQLFile::RequestSQLClassInfo(), StoreClassInNormalForm(), StoreObjectInNormalForm(), StoreTObject(), and StoreTString().

Referenced by ConvertToTables(), PerformConversion(), StoreElementInNormalForm(), and TryConvertObjectArray().

Bool_t TSQLStructure::StoreObjectInNormalForm ( TSqlRegistry reg  )  [protected]

Definition at line 1449 of file TSQLStructure.cxx.

References CheckNormalClassPair(), fChilds, GetChild(), TObjArray::GetLast(), kFALSE, and StoreClassInNormalForm().

Referenced by StoreObject().

Bool_t TSQLStructure::StoreClassInNormalForm ( TSqlRegistry reg  )  [protected]

Definition at line 1466 of file TSQLStructure.cxx.

References TSQLTableData::AddColumn(), TObjArray::At(), TSQLFile::CreateClassTable(), DefineElementColumnType(), TObject::Error(), TSqlRegistry::f, fChilds, TSqlRegistry::fCurrentObjId, TSqlRawBuffer::fRawId, GetClassInfo(), TObjArray::GetLast(), TNamed::GetName(), TSqlRegistry::InsertToNormalTable(), kColObjectArray, kColRawData, kFALSE, kTRUE, n, sqlio::RawSuffix, TSQLFile::RequestSQLClassInfo(), TSQLFile::SQLObjectIdColumn(), TSQLTableData::TakeColInfos(), and version.

Referenced by StoreObject(), and StoreObjectInNormalForm().

Bool_t TSQLStructure::StoreElementInNormalForm ( TSqlRegistry reg,
TSQLTableData columns 
) [protected]

Definition at line 1560 of file TSQLStructure.cxx.

References TSQLTableData::AddColumn(), TSqlRegistry::AddLongString(), sqlio::atol64(), buf, TSQLFile::CodeLongString(), TString::Data(), DefineElementColumnName(), DefineElementColumnType(), DefineObjectId(), TObject::Error(), TSqlRegistry::f, TSqlRegistry::fCurrentObjId, gDebug, TStreamerElement::GetArrayLength(), GetChild(), TStreamerElement::GetClassPointer(), TClass::GetClassVersion(), GetElement(), TNamed::GetName(), TSqlRegistry::GetNextObjId(), GetObjectClass(), GetType(), TStreamerElement::GetType(), GetValue(), IsNumericType(), kColNormObject, kColNormObjectArray, kColObject, kColObjectPtr, kColParent, kColSimple, kColSimpleArray, kColTString, kFALSE, kSqlObject, kSqlPointer, kSqlValue, kTRUE, len, Long64_t, n, NumChilds(), PrintLevel(), RecognizeTString(), TSQLFile::SQLCompatibleType(), TSQLFile::SQLSmallTextType(), TSQLFile::SQLSmallTextTypeLimit(), StoreObject(), stype, and value.

Bool_t TSQLStructure::TryConvertObjectArray ( TSqlRegistry reg,
TSqlRawBuffer blobs 
) [protected]

Definition at line 1766 of file TSQLStructure.cxx.

References TSqlRawBuffer::AddLine(), CheckNormalClassPair(), TString::Data(), TSqlRegistry::f, TString::Form(), GetChild(), GetClassInfo(), GetElement(), TNamed::GetName(), TSqlRegistry::GetNextObjId(), kFALSE, kTRUE, Long64_t, NumChilds(), sqlio::ObjectRef_Arr, TSQLFile::SQLNameSeparator(), StoreObject(), and version.

Bool_t TSQLStructure::StoreTObject ( TSqlRegistry reg  )  [protected]

Definition at line 1829 of file TSQLStructure.cxx.

References TSQLTableData::AddColumn(), xmlio::Class, TSQLFile::CreateClassTable(), TSqlRegistry::f, TSqlRegistry::fCurrentObjId, GetChild(), GetType(), GetValue(), GetValueType(), TSqlRegistry::InsertToNormalTable(), kFALSE, kSqlValue, kSqlVersion, kTRUE, TStreamerInfo::kUInt, NumChilds(), TSQLFile::RequestSQLClassInfo(), TSQLFile::SQLCompatibleType(), TSQLFile::SQLObjectIdColumn(), TSQLTableData::TakeColInfos(), sqlio::TObjectBits, sqlio::TObjectProcessId, sqlio::TObjectUniqueId, sqlio::UInt, and sqlio::UShort.

Referenced by StoreObject().

Bool_t TSQLStructure::StoreTString ( TSqlRegistry reg  )  [protected]

Definition at line 1873 of file TSQLStructure.cxx.

References TSQLTableData::AddColumn(), xmlio::Class, TSQLFile::CreateClassTable(), TSqlRegistry::f, TSqlRegistry::fCurrentObjId, TSqlRegistry::InsertToNormalTable(), kFALSE, kTRUE, RecognizeTString(), TSQLFile::RequestSQLClassInfo(), TSQLFile::SQLBigTextType(), TSQLFile::SQLObjectIdColumn(), TSQLTableData::TakeColInfos(), sqlio::TStringValue, and value.

Referenced by StoreObject().

Bool_t TSQLStructure::RecognizeTString ( const char *&  value  )  [protected]

Definition at line 1896 of file TSQLStructure.cxx.

References sqlio::CharStar, GetChild(), sqlio::Int, kFALSE, kSqlValue, kTRUE, len, n, NumChilds(), and sqlio::UChar.

Referenced by StoreElementInNormalForm(), and StoreTString().

TSQLStructure* TSQLStructure::GetParent (  )  const [inline]

Definition at line 134 of file TSQLStructure.h.

References fParent.

Referenced by DefineObjectId(), GetObjectData(), TBufferSQL2::PopStack(), and TBufferSQL2::Stack().

void TSQLStructure::SetParent ( TSQLStructure p  )  [inline]

Definition at line 135 of file TSQLStructure.h.

References fParent, and p.

Referenced by Add().

Int_t TSQLStructure::NumChilds (  )  const

Definition at line 393 of file TSQLStructure.cxx.

References fChilds, and TObjArray::GetLast().

Referenced by FindMaxObjectId(), PerformConversion(), PrintLevel(), RecognizeTString(), StoreElementInNormalForm(), StoreObject(), StoreTObject(), and TryConvertObjectArray().

TSQLStructure * TSQLStructure::GetChild ( Int_t  n  )  const

Definition at line 401 of file TSQLStructure.cxx.

References fChilds, and TObjArray::GetLast().

Referenced by FindMaxObjectId(), GetObjectData(), PerformConversion(), PrintLevel(), RecognizeTString(), StoreElementInNormalForm(), StoreObject(), StoreObjectInNormalForm(), StoreTObject(), and TryConvertObjectArray().

void TSQLStructure::SetType ( Int_t  typ  )  [inline]

Definition at line 139 of file TSQLStructure.h.

References fType.

Int_t TSQLStructure::GetType (  )  const [inline]

Definition at line 140 of file TSQLStructure.h.

References fType.

Referenced by CheckNormalClassPair(), ChildArrayIndex(), TBufferSQL2::ClassEnd(), TBufferSQL2::DecrementLevel(), DefineObjectId(), GetClassInfo(), GetObjectData(), StoreElementInNormalForm(), StoreObject(), StoreTObject(), and ~TSQLStructure().

void TSQLStructure::SetObjectRef ( Long64_t  refid,
const TClass cl 
)

Definition at line 409 of file TSQLStructure.cxx.

References TString::Form(), fPointer, fType, fValue, and kSqlObject.

Referenced by TBufferSQL2::SqlReadObjectDirect(), and TBufferSQL2::SqlWriteObject().

void TSQLStructure::SetObjectPointer ( Long64_t  ptrid  ) 

Definition at line 419 of file TSQLStructure.cxx.

References TString::Form(), fType, fValue, and kSqlPointer.

Referenced by TBufferSQL2::SqlWriteObject().

void TSQLStructure::SetVersion ( const TClass cl,
Int_t  version = -100 
)

Definition at line 428 of file TSQLStructure.cxx.

References TString::Form(), fPointer, fType, fValue, TClass::GetClassVersion(), and kSqlVersion.

Referenced by AddVersion().

void TSQLStructure::SetClassStreamer ( const TClass cl  ) 

Definition at line 439 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlClassStreamer.

void TSQLStructure::SetStreamerInfo ( const TStreamerInfo info  ) 

Definition at line 448 of file TSQLStructure.cxx.

References fPointer, fType, info, and kSqlStreamerInfo.

Referenced by TBufferSQL2::IncrementLevel().

void TSQLStructure::SetStreamerElement ( const TStreamerElement elem,
Int_t  number 
)

Definition at line 457 of file TSQLStructure.cxx.

References fArrayIndex, fPointer, fType, and kSqlElement.

Referenced by TBufferSQL2::WorkWithElement().

void TSQLStructure::SetCustomClass ( const TClass cl,
Version_t  version 
)

Definition at line 467 of file TSQLStructure.cxx.

References fArrayIndex, fPointer, fType, and kSqlCustomClass.

Referenced by TBufferSQL2::ClassBegin().

void TSQLStructure::SetCustomElement ( TStreamerElement elem  ) 

Definition at line 477 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlCustomElement.

Referenced by TBufferSQL2::WorkWithElement().

void TSQLStructure::SetValue ( const char *  value,
const char *  tname = 0 
)

Definition at line 486 of file TSQLStructure.cxx.

References fPointer, fType, fValue, and kSqlValue.

Referenced by AddValue().

void TSQLStructure::SetArrayIndex ( Int_t  indx,
Int_t  cnt = 1 
)

Definition at line 505 of file TSQLStructure.cxx.

References fArrayIndex, and fRepeatCnt.

Referenced by ChildArrayIndex().

void TSQLStructure::SetArray ( Int_t  sz = -1  ) 

Definition at line 524 of file TSQLStructure.cxx.

References TString::Form(), fType, fValue, and kSqlArray.

void TSQLStructure::ChangeValueOnly ( const char *  value  ) 

Definition at line 496 of file TSQLStructure.cxx.

References fValue.

Referenced by TBufferSQL2::WorkWithClass().

TClass * TSQLStructure::GetObjectClass (  )  const

Definition at line 533 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlObject.

Referenced by ConvertToTables(), PerformConversion(), and StoreElementInNormalForm().

TClass * TSQLStructure::GetVersionClass (  )  const

Definition at line 541 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlVersion.

Referenced by CheckNormalClassPair().

TStreamerInfo * TSQLStructure::GetStreamerInfo (  )  const

Definition at line 549 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlStreamerInfo.

Referenced by GetClassInfo(), PerformConversion(), TBufferSQL2::SetStreamerElementNumber(), and StoreObject().

TStreamerElement * TSQLStructure::GetElement (  )  const

Definition at line 557 of file TSQLStructure.cxx.

References fPointer, fType, kSqlCustomElement, and kSqlElement.

Referenced by LocateElementColumn(), StoreElementInNormalForm(), StoreObject(), and TryConvertObjectArray().

Int_t TSQLStructure::GetElementNumber (  )  const

Definition at line 565 of file TSQLStructure.cxx.

References fArrayIndex, fType, and kSqlElement.

TClass * TSQLStructure::GetCustomClass (  )  const

Definition at line 581 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlCustomClass.

Referenced by GetClassInfo().

Version_t TSQLStructure::GetCustomClassVersion (  )  const

Definition at line 589 of file TSQLStructure.cxx.

References fArrayIndex, fType, and kSqlCustomClass.

Referenced by GetClassInfo().

Bool_t TSQLStructure::GetClassInfo ( TClass *&  cl,
Version_t version 
)

Definition at line 597 of file TSQLStructure.cxx.

References GetCustomClass(), GetCustomClassVersion(), GetStreamerInfo(), GetType(), info, kFALSE, kSqlCustomClass, kSqlStreamerInfo, and kTRUE.

Referenced by CheckNormalClassPair(), StoreClassInNormalForm(), and TryConvertObjectArray().

const char * TSQLStructure::GetValueType (  )  const

Definition at line 573 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlValue.

Referenced by StoreTObject().

const char * TSQLStructure::GetValue (  )  const

Definition at line 616 of file TSQLStructure.cxx.

References TString::Data(), and fValue.

Referenced by DefineObjectId(), PerformConversion(), StoreElementInNormalForm(), and StoreTObject().

Int_t TSQLStructure::GetArrayIndex (  )  const [inline]

Definition at line 166 of file TSQLStructure.h.

References fArrayIndex.

Int_t TSQLStructure::GetRepeatCounter (  )  const [inline]

Definition at line 167 of file TSQLStructure.h.

References fRepeatCnt.

void TSQLStructure::Add ( TSQLStructure child  ) 

Definition at line 626 of file TSQLStructure.cxx.

References TObjArray::Add(), fChilds, and SetParent().

Referenced by AddObjectData(), AddValue(), AddVersion(), and TBufferSQL2::PushStack().

void TSQLStructure::AddVersion ( const TClass cl,
Int_t  version = -100 
)

Definition at line 637 of file TSQLStructure.cxx.

References Add(), and SetVersion().

Referenced by TBufferSQL2::WriteVersion().

void TSQLStructure::AddValue ( const char *  value,
const char *  tname = 0 
)

Definition at line 647 of file TSQLStructure.cxx.

References Add(), and SetValue().

Referenced by TBufferSQL2::SqlWriteValue().

void TSQLStructure::ChildArrayIndex ( Int_t  index,
Int_t  cnt = 1 
)

Definition at line 514 of file TSQLStructure.cxx.

References fChilds, GetType(), kSqlValue, TObjArray::Last(), and SetArrayIndex().

Long64_t TSQLStructure::DefineObjectId ( Bool_t  recursive = kTRUE  ) 

Definition at line 657 of file TSQLStructure.cxx.

References sqlio::atol64(), GetParent(), GetType(), GetValue(), kSqlCustomClass, kSqlCustomElement, kSqlElement, kSqlObject, kSqlPointer, kSqlStreamerInfo, and value.

Referenced by ConvertToTables(), FindMaxObjectId(), LocateElementColumn(), PerformConversion(), TBufferSQL2::SqlReadCharStarValue(), StoreElementInNormalForm(), and TBufferSQL2::WorkWithClass().

void TSQLStructure::SetObjectData ( TSQLObjectData objdata  ) 

Definition at line 683 of file TSQLStructure.cxx.

References fPointer, fType, and kSqlObjectData.

Referenced by AddObjectData().

void TSQLStructure::AddObjectData ( TSQLObjectData objdata  ) 

Definition at line 692 of file TSQLStructure.cxx.

References Add(), and SetObjectData().

Referenced by LocateElementColumn(), TBufferSQL2::SqlReadObjectDirect(), and TBufferSQL2::WorkWithClass().

TSQLObjectData * TSQLStructure::GetObjectData ( Bool_t  search = false  ) 

Definition at line 702 of file TSQLStructure.cxx.

References fPointer, GetChild(), GetObjectData(), GetParent(), GetType(), and kSqlObjectData.

Referenced by TBufferSQL2::ClassEnd(), TBufferSQL2::DecrementLevel(), GetObjectData(), and TBufferSQL2::WorkWithElement().

void TSQLStructure::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Definition at line 715 of file TSQLStructure.cxx.

References PrintLevel().

Referenced by TBufferSQL2::SqlWriteAny().

void TSQLStructure::PrintLevel ( Int_t  level  )  const

Definition at line 723 of file TSQLStructure.cxx.

References fPointer, fRepeatCnt, fType, fValue, GetChild(), TClass::GetClassVersion(), TNamed::GetName(), info, kSqlArray, kSqlCustomClass, kSqlCustomElement, kSqlElement, kSqlObject, kSqlPointer, kSqlStreamerInfo, kSqlValue, kSqlVersion, n, NumChilds(), and PrintLevel().

Referenced by Print(), PrintLevel(), and StoreElementInNormalForm().

Bool_t TSQLStructure::ConvertToTables ( TSQLFile f,
Long64_t  keyid,
TObjArray cmds 
)

Definition at line 1248 of file TSQLStructure.cxx.

References TSqlRegistry::ConvertPoolValues(), DefineObjectId(), TSqlRegistry::f, TSqlRegistry::fCmds, TSqlRegistry::fFirstObjId, FindMaxObjectId(), TSqlRegistry::fKeyId, TSqlRegistry::fLastObjId, GetObjectClass(), kFALSE, and StoreObject().

Int_t TSQLStructure::LocateElementColumn ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data 
)

Definition at line 2130 of file TSQLStructure.cxx.

References AddObjectData(), sqlio::atol64(), buf, sqlio::CharStar, xmlio::Class, TString::Data(), data, DefineElementColumnName(), DefineElementColumnType(), DefineObjectId(), fValue, gDebug, TStreamerElement::GetArrayLength(), GetElement(), TNamed::GetName(), TObject::GetName(), TStreamerElement::GetType(), sqlio::Int, TSQLClassInfo::IsClassTableExist(), kColNormObject, kColNormObjectArray, kColObject, kColObjectArray, kColObjectPtr, kColParent, kColRawData, kColSimple, kColSimpleArray, kColTString, kColUnknown, kFALSE, kTRUE, len, Long64_t, TSQLObjectData::PrepareForRawData(), sqlio::UChar, UnpackTObject(), value, version, and sqlio::Version.

Referenced by TBufferSQL2::WorkWithElement().

Bool_t TSQLStructure::UnpackTObject ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data,
Long64_t  objid,
Int_t  clversion 
) [static]

Definition at line 2311 of file TSQLStructure.cxx.

References buf, xmlio::Class, data, TObject::GetName(), TSQLObjectData::GetValue(), kFALSE, kTRUE, TSQLObjectData::LocateColumn(), TSQLObjectData::ShiftToNextValue(), sqlio::TObjectBits, sqlio::TObjectProcessId, sqlio::TObjectUniqueId, sqlio::UInt, sqlio::UShort, value, and sqlio::Version.

Referenced by G__G__SQL_132_0_55(), G__setup_memfuncTSQLStructure(), LocateElementColumn(), and TBufferSQL2::SqlReadObjectDirect().

Bool_t TSQLStructure::UnpackTString ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data,
Long64_t  objid,
Int_t  clversion 
) [static]

Definition at line 2342 of file TSQLStructure.cxx.

References buf, sqlio::CharStar, xmlio::Class, data, TObject::GetName(), TSQLObjectData::GetValue(), sqlio::Int, kFALSE, kTRUE, len, TSQLObjectData::LocateColumn(), sqlio::TStringValue, sqlio::UChar, and value.

Referenced by G__G__SQL_132_0_56(), G__setup_memfuncTSQLStructure(), and TBufferSQL2::SqlReadObjectDirect().

Bool_t TSQLStructure::IsNumericType ( Int_t  typ  )  [static]

Definition at line 774 of file TSQLStructure.cxx.

References TStreamerInfo::kBits, TStreamerInfo::kBool, TStreamerInfo::kCounter, TStreamerInfo::kDouble, TStreamerInfo::kDouble32, kFALSE, TStreamerInfo::kFloat, TStreamerInfo::kFloat16, TStreamerInfo::kInt, TStreamerInfo::kLong, TStreamerInfo::kLong64, TStreamerInfo::kShort, kTRUE, TStreamerInfo::kUChar, TStreamerInfo::kUInt, TStreamerInfo::kULong, TStreamerInfo::kULong64, and TStreamerInfo::kUShort.

Referenced by G__G__SQL_132_0_57(), G__setup_memfuncTSQLStructure(), and StoreElementInNormalForm().

const char * TSQLStructure::GetSimpleTypeName ( Int_t  typ  )  [static]

Definition at line 800 of file TSQLStructure.cxx.

References sqlio::Bool, sqlio::Char, sqlio::Double, sqlio::Float, sqlio::Int, TStreamerInfo::kBits, TStreamerInfo::kBool, TStreamerInfo::kChar, TStreamerInfo::kCounter, TStreamerInfo::kDouble, TStreamerInfo::kDouble32, TStreamerInfo::kFloat, TStreamerInfo::kFloat16, TStreamerInfo::kInt, TStreamerInfo::kLong, TStreamerInfo::kLong64, TStreamerInfo::kShort, TStreamerInfo::kUChar, TStreamerInfo::kUInt, TStreamerInfo::kULong, TStreamerInfo::kULong64, TStreamerInfo::kUShort, sqlio::Long, sqlio::Long64, sqlio::Short, sqlio::UChar, sqlio::UInt, sqlio::ULong, sqlio::ULong64, and sqlio::UShort.

Referenced by DefineElementColumnName(), G__G__SQL_132_0_58(), and G__setup_memfuncTSQLStructure().

TString TSQLStructure::MakeArrayIndex ( TStreamerElement elem,
Int_t  n 
) [static]

Definition at line 1542 of file TSQLStructure.cxx.

References buf, TStreamerElement::GetArrayDim(), TStreamerElement::GetArrayLength(), and TStreamerElement::GetMaxIndex().

Referenced by DefineElementColumnName(), G__G__SQL_132_0_59(), and G__setup_memfuncTSQLStructure().

Int_t TSQLStructure::DefineElementColumnType ( TStreamerElement elem,
TSQLFile f 
) [static]

Definition at line 1929 of file TSQLStructure.cxx.

References xmlio::Class, TStreamerElement::GetArrayDim(), TStreamerElement::GetArrayLength(), TStreamerElement::GetStreamer(), TStreamerElement::GetType(), TObject::InheritsFrom(), TStreamerInfo::kAny, TStreamerInfo::kAnyP, TStreamerInfo::kAnyp, TStreamerInfo::kBase, TStreamerInfo::kCharStar, kColNormObject, kColNormObjectArray, kColObject, kColObjectArray, kColObjectPtr, kColParent, kColRawData, kColSimple, kColSimpleArray, kColTString, kColUnknown, TStreamerInfo::kMissing, TStreamerInfo::kObject, TStreamerInfo::kObjectp, TStreamerInfo::kObjectP, TStreamerInfo::kOffsetL, TStreamerInfo::kOffsetP, TStreamerInfo::kSTL, TStreamerInfo::kTNamed, TStreamerInfo::kTObject, and TStreamerInfo::kTString.

Referenced by DefineElementColumnName(), G__G__SQL_132_0_60(), G__setup_memfuncTSQLStructure(), LocateElementColumn(), TSQLFile::ProduceClassSelectQuery(), StoreClassInNormalForm(), and StoreElementInNormalForm().

TString TSQLStructure::DefineElementColumnName ( TStreamerElement elem,
TSQLFile f,
Int_t  indx = 0 
) [static]

Definition at line 2041 of file TSQLStructure.cxx.

References DefineElementColumnType(), TNamed::GetName(), GetSimpleTypeName(), TStreamerElement::GetType(), kColNormObject, kColNormObjectArray, kColObject, kColObjectArray, kColObjectPtr, kColParent, kColRawData, kColSimple, kColSimpleArray, kColTString, kColUnknown, MakeArrayIndex(), sqlio::ObjectSuffix, sqlio::ParentSuffix, sqlio::PointerSuffix, sqlio::RawSuffix, and sqlio::StrSuffix.

Referenced by G__G__SQL_132_0_61(), G__setup_memfuncTSQLStructure(), LocateElementColumn(), TSQLFile::ProduceClassSelectQuery(), and StoreElementInNormalForm().

void TSQLStructure::AddStrBrackets ( TString s,
const char *  quote 
) [static]

Definition at line 2372 of file TSQLStructure.cxx.

References s.

Referenced by TSqlRawBuffer::AddLine(), TSqlRegistry::AddLongString(), TSQLFile::DirWriteHeader(), G__G__SQL_132_0_62(), G__setup_memfuncTSQLStructure(), TSqlRegistry::InsertToNormalTable(), and TSQLFile::UpdateKeyData().

TSQLStructure::ClassDef ( TSQLStructure  ,
 
)

Bool_t TSQLStructure::CheckNormalClassPair ( TSQLStructure vers,
TSQLStructure info 
) [protected]

Long64_t TSQLStructure::FindMaxObjectId (  )  [protected]

void TSQLStructure::PerformConversion ( TSqlRegistry reg,
TSqlRawBuffer blobs,
const char *  topname,
Bool_t  useblob = kFALSE 
) [protected]

Bool_t TSQLStructure::StoreObject ( TSqlRegistry reg,
Long64_t  objid,
TClass cl,
Bool_t  registerobj = kTRUE 
) [protected]

Bool_t TSQLStructure::StoreObjectInNormalForm ( TSqlRegistry reg  )  [protected]

Bool_t TSQLStructure::StoreClassInNormalForm ( TSqlRegistry reg  )  [protected]

Bool_t TSQLStructure::StoreElementInNormalForm ( TSqlRegistry reg,
TSQLTableData columns 
) [protected]

Bool_t TSQLStructure::TryConvertObjectArray ( TSqlRegistry reg,
TSqlRawBuffer blobs 
) [protected]

Bool_t TSQLStructure::StoreTObject ( TSqlRegistry reg  )  [protected]

Bool_t TSQLStructure::StoreTString ( TSqlRegistry reg  )  [protected]

Bool_t TSQLStructure::RecognizeTString ( const char *&  value  )  [protected]

TSQLStructure* TSQLStructure::GetParent (  )  const [inline]

Definition at line 134 of file TSQLStructure.h.

References fParent.

void TSQLStructure::SetParent ( TSQLStructure p  )  [inline]

Definition at line 135 of file TSQLStructure.h.

References fParent, and p.

Int_t TSQLStructure::NumChilds (  )  const

TSQLStructure* TSQLStructure::GetChild ( Int_t  n  )  const

void TSQLStructure::SetType ( Int_t  typ  )  [inline]

Definition at line 139 of file TSQLStructure.h.

References fType.

Int_t TSQLStructure::GetType (  )  const [inline]

Definition at line 140 of file TSQLStructure.h.

References fType.

void TSQLStructure::SetObjectRef ( Long64_t  refid,
const TClass cl 
)

void TSQLStructure::SetObjectPointer ( Long64_t  ptrid  ) 

void TSQLStructure::SetVersion ( const TClass cl,
Int_t  version = -100 
)

void TSQLStructure::SetClassStreamer ( const TClass cl  ) 

void TSQLStructure::SetStreamerInfo ( const TStreamerInfo info  ) 

void TSQLStructure::SetStreamerElement ( const TStreamerElement elem,
Int_t  number 
)

void TSQLStructure::SetCustomClass ( const TClass cl,
Version_t  version 
)

void TSQLStructure::SetCustomElement ( TStreamerElement elem  ) 

void TSQLStructure::SetValue ( const char *  value,
const char *  tname = 0 
)

void TSQLStructure::SetArrayIndex ( Int_t  indx,
Int_t  cnt = 1 
)

void TSQLStructure::SetArray ( Int_t  sz = -1  ) 

void TSQLStructure::ChangeValueOnly ( const char *  value  ) 

TClass* TSQLStructure::GetObjectClass (  )  const

TClass* TSQLStructure::GetVersionClass (  )  const

TStreamerInfo* TSQLStructure::GetStreamerInfo (  )  const

TStreamerElement* TSQLStructure::GetElement (  )  const

Int_t TSQLStructure::GetElementNumber (  )  const

TClass* TSQLStructure::GetCustomClass (  )  const

Version_t TSQLStructure::GetCustomClassVersion (  )  const

Bool_t TSQLStructure::GetClassInfo ( TClass *&  cl,
Version_t version 
)

const char* TSQLStructure::GetValueType (  )  const

const char* TSQLStructure::GetValue (  )  const

Int_t TSQLStructure::GetArrayIndex (  )  const [inline]

Definition at line 166 of file TSQLStructure.h.

References fArrayIndex.

Int_t TSQLStructure::GetRepeatCounter (  )  const [inline]

Definition at line 167 of file TSQLStructure.h.

References fRepeatCnt.

void TSQLStructure::Add ( TSQLStructure child  ) 

void TSQLStructure::AddVersion ( const TClass cl,
Int_t  version = -100 
)

void TSQLStructure::AddValue ( const char *  value,
const char *  tname = 0 
)

void TSQLStructure::ChildArrayIndex ( Int_t  index,
Int_t  cnt = 1 
)

Long64_t TSQLStructure::DefineObjectId ( Bool_t  recursive = kTRUE  ) 

void TSQLStructure::SetObjectData ( TSQLObjectData objdata  ) 

void TSQLStructure::AddObjectData ( TSQLObjectData objdata  ) 

TSQLObjectData* TSQLStructure::GetObjectData ( Bool_t  search = false  ) 

virtual void TSQLStructure::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

void TSQLStructure::PrintLevel ( Int_t  level  )  const

Bool_t TSQLStructure::ConvertToTables ( TSQLFile f,
Long64_t  keyid,
TObjArray cmds 
)

Int_t TSQLStructure::LocateElementColumn ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data 
)

static Bool_t TSQLStructure::UnpackTObject ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data,
Long64_t  objid,
Int_t  clversion 
) [static]

static Bool_t TSQLStructure::UnpackTString ( TSQLFile f,
TBufferSQL2 buf,
TSQLObjectData data,
Long64_t  objid,
Int_t  clversion 
) [static]

static Bool_t TSQLStructure::IsNumericType ( Int_t  typ  )  [static]

static const char* TSQLStructure::GetSimpleTypeName ( Int_t  typ  )  [static]

static TString TSQLStructure::MakeArrayIndex ( TStreamerElement elem,
Int_t  n 
) [static]

static Int_t TSQLStructure::DefineElementColumnType ( TStreamerElement elem,
TSQLFile f 
) [static]

static TString TSQLStructure::DefineElementColumnName ( TStreamerElement elem,
TSQLFile f,
Int_t  indx = 0 
) [static]

static void TSQLStructure::AddStrBrackets ( TString s,
const char *  quote 
) [static]

TSQLStructure::ClassDef ( TSQLStructure  ,
 
)


Member Data Documentation

TSQLStructure* TSQLStructure::fParent [protected]

Definition at line 122 of file TSQLStructure.h.

Referenced by GetParent(), and SetParent().

Int_t TSQLStructure::fType [protected]

Definition at line 123 of file TSQLStructure.h.

Referenced by GetCustomClass(), GetCustomClassVersion(), GetElement(), GetElementNumber(), GetObjectClass(), GetStreamerInfo(), GetType(), GetValueType(), GetVersionClass(), PerformConversion(), PrintLevel(), SetArray(), SetClassStreamer(), SetCustomClass(), SetCustomElement(), SetObjectData(), SetObjectPointer(), SetObjectRef(), SetStreamerElement(), SetStreamerInfo(), SetType(), SetValue(), and SetVersion().

const void* TSQLStructure::fPointer [protected]

Definition at line 124 of file TSQLStructure.h.

Referenced by GetCustomClass(), GetElement(), GetObjectClass(), GetObjectData(), GetStreamerInfo(), GetValueType(), GetVersionClass(), PerformConversion(), PrintLevel(), SetClassStreamer(), SetCustomClass(), SetCustomElement(), SetObjectData(), SetObjectRef(), SetStreamerElement(), SetStreamerInfo(), SetValue(), SetVersion(), and ~TSQLStructure().

TString TSQLStructure::fValue [protected]

Definition at line 125 of file TSQLStructure.h.

Referenced by ChangeValueOnly(), GetValue(), LocateElementColumn(), PerformConversion(), PrintLevel(), SetArray(), SetObjectPointer(), SetObjectRef(), SetValue(), and SetVersion().

Int_t TSQLStructure::fArrayIndex [protected]

Definition at line 126 of file TSQLStructure.h.

Referenced by GetArrayIndex(), GetCustomClassVersion(), GetElementNumber(), PerformConversion(), SetArrayIndex(), SetCustomClass(), and SetStreamerElement().

Int_t TSQLStructure::fRepeatCnt [protected]

Definition at line 127 of file TSQLStructure.h.

Referenced by GetRepeatCounter(), PerformConversion(), PrintLevel(), and SetArrayIndex().

TObjArray TSQLStructure::fChilds [protected]

Definition at line 128 of file TSQLStructure.h.

Referenced by Add(), ChildArrayIndex(), GetChild(), NumChilds(), PerformConversion(), StoreClassInNormalForm(), StoreObjectInNormalForm(), and ~TSQLStructure().

TSQLStructure* TSQLStructure::fParent [protected]

Definition at line 122 of file TSQLStructure.h.

const void* TSQLStructure::fPointer [protected]

Definition at line 124 of file TSQLStructure.h.


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