Logo ROOT  
Reference Guide
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 More...
 
void Add (TSQLStructure *child)
 Add child structure. More...
 
void AddObjectData (TSQLObjectData *objdata)
 add element with pointer to object data More...
 
void AddValue (const char *value, const char *tname=0)
 Add child structure as value. More...
 
void AddVersion (const TClass *cl, Int_t version=-100)
 add child as version More...
 
void ChangeValueOnly (const char *value)
 change value of this structure used as "workaround" to keep object id in kSqlElement node More...
 
void ChildArrayIndex (Int_t index, Int_t cnt=1)
 set array index for last child element if (cnt<=1) return; More...
 
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. More...
 
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 More...
 
Int_t GetArrayIndex () const
 
TSQLStructureGetChild (Int_t n) const
 return child structure of index n More...
 
Bool_t GetClassInfo (TClass *&cl, Version_t &version)
 provides class info if structure kSqlStreamerInfo or kSqlCustomClass More...
 
TClassGetCustomClass () const
 return element custom class if structures is kSqlCustomClass More...
 
Version_t GetCustomClassVersion () const
 return custom class version if structures is kSqlCustomClass More...
 
TStreamerElementGetElement () const
 return TStremerElement* if type is kSqlElement More...
 
Int_t GetElementNumber () const
 returns number of TStremerElement in TStreamerInfo More...
 
TClassGetObjectClass () const
 return object class if type kSqlObject More...
 
TSQLObjectDataGetObjectData (Bool_t search=false)
 searches for objects data More...
 
TSQLStructureGetParent () const
 
Int_t GetRepeatCounter () const
 
TStreamerInfoGetStreamerInfo () const
 return TStreamerInfo* if type is kSqlStreamerInfo More...
 
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 More...
 
const char * GetValueType () const
 return value type if structure is kSqlValue More...
 
TClassGetVersionClass () const
 return class for version tag if type is kSqlVersion More...
 
Int_t LocateElementColumn (TSQLFile *f, TBufferSQL2 *buf, TSQLObjectData *data)
 find column in TSQLObjectData object, which correspond to current element More...
 
Int_t NumChilds () const
 number of child structures More...
 
virtual void Print (Option_t *option="") const
 print content of complete structure More...
 
void PrintLevel (Int_t level) const
 print content of current structure More...
 
void SetArray (Int_t sz=-1)
 Set structure as array element. More...
 
void SetArrayIndex (Int_t indx, Int_t cnt=1)
 set array index for this structure More...
 
void SetClassStreamer (const TClass *cl)
 set structure type as kSqlClassStreamer More...
 
void SetCustomClass (const TClass *cl, Version_t version)
 set structure type as kSqlCustomClass More...
 
void SetCustomElement (TStreamerElement *elem)
 set structure type as kSqlCustomElement More...
 
void SetObjectData (TSQLObjectData *objdata)
 set element to be used for object data More...
 
void SetObjectPointer (Long64_t ptrid)
 set structure type as kSqlPointer More...
 
void SetObjectRef (Long64_t refid, const TClass *cl)
 set structure type as kSqlObject More...
 
void SetParent (TSQLStructure *p)
 
void SetStreamerElement (const TStreamerElement *elem, Int_t number)
 set structure type as kSqlElement More...
 
void SetStreamerInfo (const TStreamerInfo *info)
 set structure type as kSqlStreamerInfo More...
 
void SetType (Int_t typ)
 
void SetValue (const char *value, const char *tname=0)
 set structure type as kSqlValue More...
 
void SetVersion (const TClass *cl, Int_t version=-100)
 set structure type as kSqlVersion More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
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. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
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. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
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. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
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. More...
 
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). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
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. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
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. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Static Public Member Functions

static void AddStrBrackets (TString &s, const char *quote)
 adds quotes around string value and replaces some special symbols More...
 
static TString DefineElementColumnName (TStreamerElement *elem, TSQLFile *f, Int_t indx=0)
 returns name of the column in class table for that element More...
 
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 More...
 
static const char * GetSimpleTypeName (Int_t typ)
 provides name for basic types used as suffix for column name or field suffix in raw table More...
 
static Bool_t IsNumericType (Int_t typ)
 defines if value is numeric and not requires quotes when writing More...
 
static TString MakeArrayIndex (TStreamerElement *elem, Int_t n)
 produce string with complete index like [1][2][0] More...
 
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. More...
 
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. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

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 More...
 
Long64_t FindMaxObjectId ()
 define maximum reference id, used for objects More...
 
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 More...
 
Bool_t RecognizeTString (const char *&value)
 prove that structure contains TString data More...
 
Bool_t StoreClassInNormalForm (TSqlRegistry *reg)
 produces data for complete class table where not possible, raw data for some elements are created More...
 
Bool_t StoreElementInNormalForm (TSqlRegistry *reg, TSQLTableData *columns)
 tries to store element data in column More...
 
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 More...
 
Bool_t StoreObjectInNormalForm (TSqlRegistry *reg)
 this function verify object child elements and calls transformation to class table More...
 
Bool_t StoreTObject (TSqlRegistry *reg)
 store data of TObject in special table workaround custom TObject streamer More...
 
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 More...
 
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. More...
 
- 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). More...
 
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 329 of file TSQLStructure.cxx.

Member Function Documentation

◆ Add()

void TSQLStructure::Add ( TSQLStructure child)

Add child structure.

Definition at line 580 of file TSQLStructure.cxx.

◆ AddObjectData()

void TSQLStructure::AddObjectData ( TSQLObjectData objdata)

add element with pointer to object data

Definition at line 643 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 2367 of file TSQLStructure.cxx.

◆ AddValue()

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

Add child structure as value.

Definition at line 601 of file TSQLStructure.cxx.

◆ AddVersion()

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

add child as version

Definition at line 591 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 449 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 1776 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 467 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 1187 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 2016 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 1922 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 613 of file TSQLStructure.cxx.

◆ FindMaxObjectId()

Long64_t TSQLStructure::FindMaxObjectId ( )
protected

define maximum reference id, used for objects

Definition at line 1168 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 352 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 551 of file TSQLStructure.cxx.

◆ GetCustomClass()

TClass * TSQLStructure::GetCustomClass ( ) const

return element custom class if structures is kSqlCustomClass

Definition at line 535 of file TSQLStructure.cxx.

◆ GetCustomClassVersion()

Version_t TSQLStructure::GetCustomClassVersion ( ) const

return custom class version if structures is kSqlCustomClass

Definition at line 543 of file TSQLStructure.cxx.

◆ GetElement()

TStreamerElement * TSQLStructure::GetElement ( ) const

return TStremerElement* if type is kSqlElement

Definition at line 511 of file TSQLStructure.cxx.

◆ GetElementNumber()

Int_t TSQLStructure::GetElementNumber ( ) const

returns number of TStremerElement in TStreamerInfo

Definition at line 519 of file TSQLStructure.cxx.

◆ GetObjectClass()

TClass * TSQLStructure::GetObjectClass ( ) const

return object class if type kSqlObject

Definition at line 487 of file TSQLStructure.cxx.

◆ GetObjectData()

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

searches for objects data

Definition at line 653 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 755 of file TSQLStructure.cxx.

◆ GetStreamerInfo()

TStreamerInfo * TSQLStructure::GetStreamerInfo ( ) const

return TStreamerInfo* if type is kSqlStreamerInfo

Definition at line 503 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 572 of file TSQLStructure.cxx.

◆ GetValueType()

const char * TSQLStructure::GetValueType ( ) const

return value type if structure is kSqlValue

Definition at line 527 of file TSQLStructure.cxx.

◆ GetVersionClass()

TClass * TSQLStructure::GetVersionClass ( ) const

return class for version tag if type is kSqlVersion

Definition at line 495 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 728 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 2106 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 1492 of file TSQLStructure.cxx.

◆ NumChilds()

Int_t TSQLStructure::NumChilds ( ) const

number of child structures

Definition at line 344 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 1215 of file TSQLStructure.cxx.

◆ Print()

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

print content of complete structure

Reimplemented from TObject.

Definition at line 666 of file TSQLStructure.cxx.

◆ PrintLevel()

void TSQLStructure::PrintLevel ( Int_t  level) const

print content of current structure

Definition at line 674 of file TSQLStructure.cxx.

◆ RecognizeTString()

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

prove that structure contains TString data

Definition at line 1869 of file TSQLStructure.cxx.

◆ SetArray()

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

Set structure as array element.

Definition at line 477 of file TSQLStructure.cxx.

◆ SetArrayIndex()

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

set array index for this structure

Definition at line 457 of file TSQLStructure.cxx.

◆ SetClassStreamer()

void TSQLStructure::SetClassStreamer ( const TClass cl)

set structure type as kSqlClassStreamer

Definition at line 391 of file TSQLStructure.cxx.

◆ SetCustomClass()

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

set structure type as kSqlCustomClass

Definition at line 419 of file TSQLStructure.cxx.

◆ SetCustomElement()

void TSQLStructure::SetCustomElement ( TStreamerElement elem)

set structure type as kSqlCustomElement

Definition at line 429 of file TSQLStructure.cxx.

◆ SetObjectData()

void TSQLStructure::SetObjectData ( TSQLObjectData objdata)

set element to be used for object data

Definition at line 634 of file TSQLStructure.cxx.

◆ SetObjectPointer()

void TSQLStructure::SetObjectPointer ( Long64_t  ptrid)

set structure type as kSqlPointer

Definition at line 370 of file TSQLStructure.cxx.

◆ SetObjectRef()

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

set structure type as kSqlObject

Definition at line 360 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 409 of file TSQLStructure.cxx.

◆ SetStreamerInfo()

void TSQLStructure::SetStreamerInfo ( const TStreamerInfo info)

set structure type as kSqlStreamerInfo

Definition at line 400 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 438 of file TSQLStructure.cxx.

◆ SetVersion()

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

set structure type as kSqlVersion

Definition at line 379 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 1414 of file TSQLStructure.cxx.

◆ StoreElementInNormalForm()

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

tries to store element data in column

Definition at line 1511 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 1328 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 1395 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 1798 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 1845 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 1731 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 2301 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 2335 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:
[legend]

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