Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TSQLStructure Class Reference

This is hierarchical structure, which is created when data is written by TBufferSQL2.

It contains data all structural information such: version of written class, data member types of that class, value for each data member and so on. Such structure in some sense similar to XML node and subnodes structure Once it created, it converted to SQL statements, which are submitted to database server.

Definition at line 88 of file TSQLStructure.h.

Public Types

enum  ESQLColumns {
  kColUnknown = 0 , kColSimple = 1 , kColSimpleArray = 2 , kColParent = 3 ,
  kColObject = 4 , kColObjectArray = 5 , kColNormObject = 6 , kColNormObjectArray = 7 ,
  kColObjectPtr = 8 , kColTString = 9 , kColRawData = 10
}
 
enum  ESQLIdType { kIdTable = 0 , kIdRawTable = 1 , kIdColumn = 2 }
 
enum  ESQLTypes {
  kSqlObject = 10001 , kSqlPointer = 10002 , kSqlVersion = 10003 , kSqlStreamerInfo = 10004 ,
  kSqlClassStreamer = 10005 , kSqlElement = 10006 , kSqlValue = 10007 , kSqlArray = 10008 ,
  kSqlObjectData = 10009 , kSqlCustomClass = 10010 , kSqlCustomElement = 10011
}
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 

Public Member Functions

 TSQLStructure ()
 
virtual ~TSQLStructure ()
 destructor
 
void Add (TSQLStructure *child)
 Add child structure.
 
void AddObjectData (TSQLObjectData *objdata)
 add element with pointer to object data
 
void AddValue (const char *value, const char *tname=0)
 Add child structure as value.
 
void AddVersion (const TClass *cl, Int_t version=-100)
 add child as version
 
void ChangeValueOnly (const char *value)
 change value of this structure used as "workaround" to keep object id in kSqlElement node
 
void ChildArrayIndex (Int_t index, Int_t cnt=1)
 set array index for last child element if (cnt<=1) return;
 
Bool_t ConvertToTables (TSQLFile *f, Long64_t keyid, TObjArray *cmds)
 Convert structure to sql statements This function is called immidiately after TBufferSQL2 produces this structure with object data Should be only called for toplevel structure.
 
Long64_t DefineObjectId (Bool_t recursive=kTRUE)
 defines current object id, to which this structure belong make life complicated, because some objects do not get id automatically in TBufferSQL, but afterwards
 
Int_t GetArrayIndex () const
 
TSQLStructureGetChild (Int_t n) const
 return child structure of index n
 
Bool_t GetClassInfo (TClass *&cl, Version_t &version)
 provides class info if structure kSqlStreamerInfo or kSqlCustomClass
 
TClassGetCustomClass () const
 return element custom class if structures is kSqlCustomClass
 
Version_t GetCustomClassVersion () const
 return custom class version if structures is kSqlCustomClass
 
TStreamerElementGetElement () const
 return TStremerElement* if type is kSqlElement
 
Int_t GetElementNumber () const
 returns number of TStremerElement in TStreamerInfo
 
TClassGetObjectClass () const
 return object class if type kSqlObject
 
TSQLObjectDataGetObjectData (Bool_t search=false)
 searches for objects data
 
TSQLStructureGetParent () const
 
Int_t GetRepeatCounter () const
 
TStreamerInfoGetStreamerInfo () const
 return TStreamerInfo* if type is kSqlStreamerInfo
 
Int_t GetType () const
 
const char * GetValue () const
 returns value for different structure kinds has different sense For kSqlVersion it version, for kSqlReference it is object id and so on
 
const char * GetValueType () const
 return value type if structure is kSqlValue
 
TClassGetVersionClass () const
 return class for version tag if type is kSqlVersion
 
Int_t LocateElementColumn (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data)
 find column in TSQLObjectData object, which correspond to current element
 
Int_t NumChilds () const
 number of child structures
 
virtual void Print (Option_t *option="") const
 print content of complete structure
 
void PrintLevel (Int_t level) const
 print content of current structure
 
void SetArray (Int_t sz=-1)
 Set structure as array element.
 
void SetArrayIndex (Int_t indx, Int_t cnt=1)
 set array index for this structure
 
void SetClassStreamer (const TClass *cl)
 set structure type as kSqlClassStreamer
 
void SetCustomClass (const TClass *cl, Version_t version)
 set structure type as kSqlCustomClass
 
void SetCustomElement (TStreamerElement *elem)
 set structure type as kSqlCustomElement
 
void SetObjectData (TSQLObjectData *objdata)
 set element to be used for object data
 
void SetObjectPointer (Long64_t ptrid)
 set structure type as kSqlPointer
 
void SetObjectRef (Long64_t refid, const TClass *cl)
 set structure type as kSqlObject
 
void SetParent (TSQLStructure *p)
 
void SetStreamerElement (const TStreamerElement *elem, Int_t number)
 set structure type as kSqlElement
 
void SetStreamerInfo (const TStreamerInfo *info)
 set structure type as kSqlStreamerInfo
 
void SetType (Int_t typ)
 
void SetValue (const char *value, const char *tname=0)
 set structure type as kSqlValue
 
void SetVersion (const TClass *cl, Int_t version=-100)
 set structure type as kSqlVersion
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual const char * GetName () const
 Returns name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout.
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static void AddStrBrackets (TString &s, const char *quote)
 adds quotes around string value and replaces some special symbols
 
static TString DefineElementColumnName (TStreamerElement *elem, TSQLFile *f, Int_t indx=0)
 returns name of the column in class table for that element
 
static Int_t DefineElementColumnType (TStreamerElement *elem, TSQLFile *f)
 defines which kind of column can be assigned for this element Possible cases kColSimple - basic data type kColSimpleArray - fixed array of basic types kColParent - parent class kColObject - object as data member kColObjectPtr - object as pointer kColTString - TString kColRawData - anything else as raw data
 
static const char * GetSimpleTypeName (Int_t typ)
 provides name for basic types used as suffix for column name or field suffix in raw table
 
static Bool_t IsNumericType (Int_t typ)
 defines if value is numeric and not requires quotes when writing
 
static TString MakeArrayIndex (TStreamerElement *elem, Int_t n)
 produce string with complete index like [1][2][0]
 
static Bool_t UnpackTObject (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
 Unpack TObject data in form, accepted by custom TObject streamer.
 
static Bool_t UnpackTString (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data, Long64_t objid, Int_t clversion)
 Unpack TString data in form, accepted by custom TString streamer.
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Protected Member Functions

Bool_t CheckNormalClassPair (TSQLStructure *vers, TSQLStructure *info)
 check if pair of two element corresponds to start of object, stored in normal form
 
Long64_t FindMaxObjectId ()
 define maximum reference id, used for objects
 
void PerformConversion (TSqlRegistry *reg, TSqlRawBuffer *blobs, const char *topname, Bool_t useblob=kFALSE)
 perform conversion of structure to sql statements first tries convert it to normal form if fails, produces data for raw table
 
Bool_t RecognizeTString (const char *&value)
 prove that structure contains TString data
 
Bool_t StoreClassInNormalForm (TSqlRegistry *reg)
 produces data for complete class table where not possible, raw data for some elements are created
 
Bool_t StoreElementInNormalForm (TSqlRegistry *reg, TSQLTableData *columns)
 tries to store element data in column
 
Bool_t StoreObject (TSqlRegistry *reg, Long64_t objid, TClass *cl, Bool_t registerobj=kTRUE)
 convert object data to sql statements if normal (column-wise) representation is not possible, complete object will be converted to raw format
 
Bool_t StoreObjectInNormalForm (TSqlRegistry *reg)
 this function verify object child elements and calls transformation to class table
 
Bool_t StoreTObject (TSqlRegistry *reg)
 store data of TObject in special table workaround custom TObject streamer
 
Bool_t StoreTString (TSqlRegistry *reg)
 store data of TString in special table it is required when TString stored as pointer and reference to it possible
 
Bool_t TryConvertObjectArray (TSqlRegistry *reg, TSqlRawBuffer *blobs)
 tries to write array of objects as list of object references in streamer table, while objects itself will be stored in other tables.
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 

Protected Attributes

Int_t fArrayIndex {-1}
 
TObjArray fChilds
 
TSQLStructurefParent {nullptr}
 
const voidfPointer {nullptr}
 
Int_t fRepeatCnt {0}
 
Int_t fType {0}
 
TString fValue
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 

#include <TSQLStructure.h>

Inheritance diagram for TSQLStructure:
[legend]

Member Enumeration Documentation

◆ ESQLColumns

Enumerator
kColUnknown 
kColSimple 
kColSimpleArray 
kColParent 
kColObject 
kColObjectArray 
kColNormObject 
kColNormObjectArray 
kColObjectPtr 
kColTString 
kColRawData 

Definition at line 194 of file TSQLStructure.h.

◆ ESQLIdType

Enumerator
kIdTable 
kIdRawTable 
kIdColumn 

Definition at line 208 of file TSQLStructure.h.

◆ ESQLTypes

Enumerator
kSqlObject 
kSqlPointer 
kSqlVersion 
kSqlStreamerInfo 
kSqlClassStreamer 
kSqlElement 
kSqlValue 
kSqlArray 
kSqlObjectData 
kSqlCustomClass 
kSqlCustomElement 

Definition at line 180 of file TSQLStructure.h.

Constructor & Destructor Documentation

◆ TSQLStructure()

TSQLStructure::TSQLStructure ( )
inline

Definition at line 113 of file TSQLStructure.h.

◆ ~TSQLStructure()

TSQLStructure::~TSQLStructure ( )
virtual

destructor

Definition at line 330 of file TSQLStructure.cxx.

Member Function Documentation

◆ Add()

void TSQLStructure::Add ( TSQLStructure child)

Add child structure.

Definition at line 581 of file TSQLStructure.cxx.

◆ AddObjectData()

void TSQLStructure::AddObjectData ( TSQLObjectData objdata)

add element with pointer to object data

Definition at line 644 of file TSQLStructure.cxx.

◆ AddStrBrackets()

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

adds quotes around string value and replaces some special symbols

Definition at line 2368 of file TSQLStructure.cxx.

◆ AddValue()

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

Add child structure as value.

Definition at line 602 of file TSQLStructure.cxx.

◆ AddVersion()

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

add child as version

Definition at line 592 of file TSQLStructure.cxx.

◆ ChangeValueOnly()

void TSQLStructure::ChangeValueOnly ( const char *  value)

change value of this structure used as "workaround" to keep object id in kSqlElement node

Definition at line 450 of file TSQLStructure.cxx.

◆ CheckNormalClassPair()

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

check if pair of two element corresponds to start of object, stored in normal form

Definition at line 1777 of file TSQLStructure.cxx.

◆ ChildArrayIndex()

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

set array index for last child element if (cnt<=1) return;

Definition at line 468 of file TSQLStructure.cxx.

◆ ConvertToTables()

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

Convert structure to sql statements This function is called immidiately after TBufferSQL2 produces this structure with object data Should be only called for toplevel structure.

Definition at line 1188 of file TSQLStructure.cxx.

◆ DefineElementColumnName()

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

returns name of the column in class table for that element

Definition at line 2017 of file TSQLStructure.cxx.

◆ DefineElementColumnType()

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

defines which kind of column can be assigned for this element Possible cases kColSimple - basic data type kColSimpleArray - fixed array of basic types kColParent - parent class kColObject - object as data member kColObjectPtr - object as pointer kColTString - TString kColRawData - anything else as raw data

Definition at line 1923 of file TSQLStructure.cxx.

◆ DefineObjectId()

Long64_t TSQLStructure::DefineObjectId ( Bool_t  recursive = kTRUE)

defines current object id, to which this structure belong make life complicated, because some objects do not get id automatically in TBufferSQL, but afterwards

Definition at line 614 of file TSQLStructure.cxx.

◆ FindMaxObjectId()

Long64_t TSQLStructure::FindMaxObjectId ( )
protected

define maximum reference id, used for objects

Definition at line 1169 of file TSQLStructure.cxx.

◆ GetArrayIndex()

Int_t TSQLStructure::GetArrayIndex ( ) const
inline

Definition at line 148 of file TSQLStructure.h.

◆ GetChild()

TSQLStructure * TSQLStructure::GetChild ( Int_t  n) const

return child structure of index n

Definition at line 353 of file TSQLStructure.cxx.

◆ GetClassInfo()

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

provides class info if structure kSqlStreamerInfo or kSqlCustomClass

Definition at line 552 of file TSQLStructure.cxx.

◆ GetCustomClass()

TClass * TSQLStructure::GetCustomClass ( ) const

return element custom class if structures is kSqlCustomClass

Definition at line 536 of file TSQLStructure.cxx.

◆ GetCustomClassVersion()

Version_t TSQLStructure::GetCustomClassVersion ( ) const

return custom class version if structures is kSqlCustomClass

Definition at line 544 of file TSQLStructure.cxx.

◆ GetElement()

TStreamerElement * TSQLStructure::GetElement ( ) const

return TStremerElement* if type is kSqlElement

Definition at line 512 of file TSQLStructure.cxx.

◆ GetElementNumber()

Int_t TSQLStructure::GetElementNumber ( ) const

returns number of TStremerElement in TStreamerInfo

Definition at line 520 of file TSQLStructure.cxx.

◆ GetObjectClass()

TClass * TSQLStructure::GetObjectClass ( ) const

return object class if type kSqlObject

Definition at line 488 of file TSQLStructure.cxx.

◆ GetObjectData()

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

searches for objects data

Definition at line 654 of file TSQLStructure.cxx.

◆ GetParent()

TSQLStructure * TSQLStructure::GetParent ( ) const
inline

Definition at line 116 of file TSQLStructure.h.

◆ GetRepeatCounter()

Int_t TSQLStructure::GetRepeatCounter ( ) const
inline

Definition at line 149 of file TSQLStructure.h.

◆ GetSimpleTypeName()

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

provides name for basic types used as suffix for column name or field suffix in raw table

Definition at line 756 of file TSQLStructure.cxx.

◆ GetStreamerInfo()

TStreamerInfo * TSQLStructure::GetStreamerInfo ( ) const

return TStreamerInfo* if type is kSqlStreamerInfo

Definition at line 504 of file TSQLStructure.cxx.

◆ GetType()

Int_t TSQLStructure::GetType ( ) const
inline

Definition at line 122 of file TSQLStructure.h.

◆ GetValue()

const char * TSQLStructure::GetValue ( ) const

returns value for different structure kinds has different sense For kSqlVersion it version, for kSqlReference it is object id and so on

Definition at line 573 of file TSQLStructure.cxx.

◆ GetValueType()

const char * TSQLStructure::GetValueType ( ) const

return value type if structure is kSqlValue

Definition at line 528 of file TSQLStructure.cxx.

◆ GetVersionClass()

TClass * TSQLStructure::GetVersionClass ( ) const

return class for version tag if type is kSqlVersion

Definition at line 496 of file TSQLStructure.cxx.

◆ IsNumericType()

Bool_t TSQLStructure::IsNumericType ( Int_t  typ)
static

defines if value is numeric and not requires quotes when writing

Definition at line 729 of file TSQLStructure.cxx.

◆ LocateElementColumn()

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

find column in TSQLObjectData object, which correspond to current element

Definition at line 2107 of file TSQLStructure.cxx.

◆ MakeArrayIndex()

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

produce string with complete index like [1][2][0]

Definition at line 1493 of file TSQLStructure.cxx.

◆ NumChilds()

Int_t TSQLStructure::NumChilds ( ) const

number of child structures

Definition at line 345 of file TSQLStructure.cxx.

◆ PerformConversion()

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

perform conversion of structure to sql statements first tries convert it to normal form if fails, produces data for raw table

Definition at line 1216 of file TSQLStructure.cxx.

◆ Print()

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

print content of complete structure

Reimplemented from TObject.

Definition at line 667 of file TSQLStructure.cxx.

◆ PrintLevel()

void TSQLStructure::PrintLevel ( Int_t  level) const

print content of current structure

Definition at line 675 of file TSQLStructure.cxx.

◆ RecognizeTString()

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

prove that structure contains TString data

Definition at line 1870 of file TSQLStructure.cxx.

◆ SetArray()

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

Set structure as array element.

Definition at line 478 of file TSQLStructure.cxx.

◆ SetArrayIndex()

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

set array index for this structure

Definition at line 458 of file TSQLStructure.cxx.

◆ SetClassStreamer()

void TSQLStructure::SetClassStreamer ( const TClass cl)

set structure type as kSqlClassStreamer

Definition at line 392 of file TSQLStructure.cxx.

◆ SetCustomClass()

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

set structure type as kSqlCustomClass

Definition at line 420 of file TSQLStructure.cxx.

◆ SetCustomElement()

void TSQLStructure::SetCustomElement ( TStreamerElement elem)

set structure type as kSqlCustomElement

Definition at line 430 of file TSQLStructure.cxx.

◆ SetObjectData()

void TSQLStructure::SetObjectData ( TSQLObjectData objdata)

set element to be used for object data

Definition at line 635 of file TSQLStructure.cxx.

◆ SetObjectPointer()

void TSQLStructure::SetObjectPointer ( Long64_t  ptrid)

set structure type as kSqlPointer

Definition at line 371 of file TSQLStructure.cxx.

◆ SetObjectRef()

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

set structure type as kSqlObject

Definition at line 361 of file TSQLStructure.cxx.

◆ SetParent()

void TSQLStructure::SetParent ( TSQLStructure p)
inline

Definition at line 117 of file TSQLStructure.h.

◆ SetStreamerElement()

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

set structure type as kSqlElement

Definition at line 410 of file TSQLStructure.cxx.

◆ SetStreamerInfo()

void TSQLStructure::SetStreamerInfo ( const TStreamerInfo info)

set structure type as kSqlStreamerInfo

Definition at line 401 of file TSQLStructure.cxx.

◆ SetType()

void TSQLStructure::SetType ( Int_t  typ)
inline

Definition at line 121 of file TSQLStructure.h.

◆ SetValue()

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

set structure type as kSqlValue

Definition at line 439 of file TSQLStructure.cxx.

◆ SetVersion()

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

set structure type as kSqlVersion

Definition at line 380 of file TSQLStructure.cxx.

◆ StoreClassInNormalForm()

Bool_t TSQLStructure::StoreClassInNormalForm ( TSqlRegistry reg)
protected

produces data for complete class table where not possible, raw data for some elements are created

Definition at line 1415 of file TSQLStructure.cxx.

◆ StoreElementInNormalForm()

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

tries to store element data in column

Definition at line 1512 of file TSQLStructure.cxx.

◆ StoreObject()

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

convert object data to sql statements if normal (column-wise) representation is not possible, complete object will be converted to raw format

Definition at line 1329 of file TSQLStructure.cxx.

◆ StoreObjectInNormalForm()

Bool_t TSQLStructure::StoreObjectInNormalForm ( TSqlRegistry reg)
protected

this function verify object child elements and calls transformation to class table

Definition at line 1396 of file TSQLStructure.cxx.

◆ StoreTObject()

Bool_t TSQLStructure::StoreTObject ( TSqlRegistry reg)
protected

store data of TObject in special table workaround custom TObject streamer

Definition at line 1799 of file TSQLStructure.cxx.

◆ StoreTString()

Bool_t TSQLStructure::StoreTString ( TSqlRegistry reg)
protected

store data of TString in special table it is required when TString stored as pointer and reference to it possible

Definition at line 1846 of file TSQLStructure.cxx.

◆ TryConvertObjectArray()

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

tries to write array of objects as list of object references in streamer table, while objects itself will be stored in other tables.

If not successful, object data will be stored in streamer table

Definition at line 1732 of file TSQLStructure.cxx.

◆ UnpackTObject()

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

Unpack TObject data in form, accepted by custom TObject streamer.

Definition at line 2302 of file TSQLStructure.cxx.

◆ UnpackTString()

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

Unpack TString data in form, accepted by custom TString streamer.

Definition at line 2336 of file TSQLStructure.cxx.

Member Data Documentation

◆ fArrayIndex

Int_t TSQLStructure::fArrayIndex {-1}
protected

Definition at line 108 of file TSQLStructure.h.

◆ fChilds

TObjArray TSQLStructure::fChilds
protected

Definition at line 110 of file TSQLStructure.h.

◆ fParent

TSQLStructure* TSQLStructure::fParent {nullptr}
protected

Definition at line 104 of file TSQLStructure.h.

◆ fPointer

const void* TSQLStructure::fPointer {nullptr}
protected

Definition at line 106 of file TSQLStructure.h.

◆ fRepeatCnt

Int_t TSQLStructure::fRepeatCnt {0}
protected

Definition at line 109 of file TSQLStructure.h.

◆ fType

Int_t TSQLStructure::fType {0}
protected

Definition at line 105 of file TSQLStructure.h.

◆ fValue

TString TSQLStructure::fValue
protected

Definition at line 107 of file TSQLStructure.h.

Libraries for TSQLStructure:

The documentation for this class was generated from the following files: