12 #ifndef ROOT_TSQLStructure 13 #define ROOT_TSQLStructure 77 TString DefineSQLName(
const char* fullname);
78 Bool_t HasSQLName(
const char* sqlname);
85 void AddColumn(
const char*
name,
92 Int_t GetNumColumns();
93 const char* GetColumn(
Int_t n);
107 void PerformConversion(TSqlRegistry* reg, TSqlRawBuffer* blobs,
const char* topname,
Bool_t useblob =
kFALSE);
109 Bool_t StoreObjectInNormalForm(TSqlRegistry* reg);
110 Bool_t StoreClassInNormalForm(TSqlRegistry* reg);
112 Bool_t TryConvertObjectArray(TSqlRegistry* reg, TSqlRawBuffer* blobs);
114 Bool_t StoreTObject(TSqlRegistry* reg);
115 Bool_t StoreTString(TSqlRegistry* reg);
116 Bool_t RecognizeTString(
const char* &value);
132 Int_t NumChilds()
const;
140 void SetObjectPointer(
Long64_t ptrid);
141 void SetVersion(
const TClass* cl,
Int_t version = -100);
142 void SetClassStreamer(
const TClass* cl);
147 void SetValue(
const char* value,
const char* tname = 0);
149 void SetArray(
Int_t sz = -1);
150 void ChangeValueOnly(
const char* value);
152 TClass* GetObjectClass()
const;
153 TClass* GetVersionClass()
const;
156 Int_t GetElementNumber()
const;
157 TClass* GetCustomClass()
const;
160 const char* GetValueType()
const;
166 void AddVersion(
const TClass* cl,
Int_t version = -100);
167 void AddValue(
const char* value,
const char* tname = 0);
188 static const char* GetSimpleTypeName(
Int_t typ);
192 static void AddStrBrackets(
TString &s,
const char* quote);
198 kSqlStreamerInfo = 10004,
199 kSqlClassStreamer= 10005,
203 kSqlObjectData = 10009,
204 kSqlCustomClass = 10010,
205 kSqlCustomElement= 10011
216 kColNormObjectArray = 7,
262 extern const char*
Array;
263 extern const char*
Bool;
264 extern const char*
Char;
265 extern const char*
Short;
266 extern const char*
Int;
267 extern const char*
Long;
268 extern const char*
Long64;
269 extern const char*
Float;
270 extern const char*
Double;
271 extern const char*
UChar;
272 extern const char*
UShort;
273 extern const char*
UInt;
274 extern const char*
ULong;
277 extern const char*
True;
278 extern const char*
False;
Describe Streamer information for one class version.
TString fName
! name of the table column
TSQLColumnData()
default constructor
const char * IdsTableIndex
Bool_t fNumeric
! for numeric quotes (double quotes) are not required
RooCmdArg PrintLevel(Int_t code)
const char * cfg_UseTransactions
TObjArray * fColInfos
! array with TSQLClassColumnInfo, used later for TSQLClassInfo
Contains information about tables specific to one class and version.
const char * cfg_LockingMode
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
void SetParent(TSQLStructure *p)
Int_t GetArrayIndex() const
const char * ParentSuffix
const char * cfg_UseIndexes
TSQLObjectData is used in TBufferSQL2 class in reading procedure.
const char * StringsTable
Long64_t atol64(const char *value)
const char * TStringValue
#define ClassDef(name, id)
const char * ObjectsTableIndex
TString fValue
! value of the table column
This is hierarhical structure, which is created when data is written by TBufferSQL2.
const char * cfg_TablesType
const char * KeysTableIndex
const char * GetType() const
Access an SQL db via the TFile interface.
const char * ObjectSuffix
const char * LongStrPrefix
The ROOT global object gROOT contains a list of all defined classes.
const char * TObjectUniqueId
const char * ObjectRef_Arr
virtual ~TSQLColumnData()
TSQLColumnData destructor.
Converts data to SQL statements or read data from SQL tables.
const Int_t Ids_FirstObject
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
virtual const char * GetName() const
Returns name of object.
const Int_t Ids_StreamerInfos
const char * TObjectProcessId
const char * GetValue() const
const char * cfg_ArrayLimit
Mother of all ROOT objects.
TString fType
! type of the table column
const char * PointerSuffix
const char * ObjectsTable
Int_t GetRepeatCounter() const
TSQLStructure * GetParent() const
TObjArray fColumns
! collection of columns
const char * cfg_UseSufixes
const char * Data() const
const char * cfg_ModifyCounter