12 #ifndef ROOT_TSQLStructure 13 #define ROOT_TSQLStructure 19 #ifndef ROOT_TObjArray 83 TString DefineSQLName(
const char* fullname);
84 Bool_t HasSQLName(
const char* sqlname);
91 void AddColumn(
const char*
name,
98 Int_t GetNumColumns();
99 const char* GetColumn(
Int_t n);
113 void PerformConversion(TSqlRegistry* reg, TSqlRawBuffer* blobs,
const char* topname,
Bool_t useblob =
kFALSE);
115 Bool_t StoreObjectInNormalForm(TSqlRegistry* reg);
116 Bool_t StoreClassInNormalForm(TSqlRegistry* reg);
118 Bool_t TryConvertObjectArray(TSqlRegistry* reg, TSqlRawBuffer* blobs);
120 Bool_t StoreTObject(TSqlRegistry* reg);
121 Bool_t StoreTString(TSqlRegistry* reg);
122 Bool_t RecognizeTString(
const char* &value);
138 Int_t NumChilds()
const;
146 void SetObjectPointer(
Long64_t ptrid);
147 void SetVersion(
const TClass* cl,
Int_t version = -100);
148 void SetClassStreamer(
const TClass* cl);
153 void SetValue(
const char* value,
const char* tname = 0);
155 void SetArray(
Int_t sz = -1);
156 void ChangeValueOnly(
const char* value);
158 TClass* GetObjectClass()
const;
159 TClass* GetVersionClass()
const;
162 Int_t GetElementNumber()
const;
163 TClass* GetCustomClass()
const;
166 const char* GetValueType()
const;
172 void AddVersion(
const TClass* cl,
Int_t version = -100);
173 void AddValue(
const char* value,
const char* tname = 0);
194 static const char* GetSimpleTypeName(
Int_t typ);
198 static void AddStrBrackets(
TString &s,
const char* quote);
204 kSqlStreamerInfo = 10004,
205 kSqlClassStreamer= 10005,
209 kSqlObjectData = 10009,
210 kSqlCustomClass = 10010,
211 kSqlCustomElement= 10011
222 kColNormObjectArray = 7,
268 extern const char*
Array;
269 extern const char*
Bool;
270 extern const char*
Char;
271 extern const char*
Short;
272 extern const char*
Int;
273 extern const char*
Long;
274 extern const char*
Long64;
275 extern const char*
Float;
276 extern const char*
Double;
277 extern const char*
UChar;
278 extern const char*
UShort;
279 extern const char*
UInt;
280 extern const char*
ULong;
283 extern const char*
True;
284 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.
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
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
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