20#define PDATABASE_MAX_DOUBLE_PARAM 20
21#define PDATABASE_MAX_STRING_PARAM 20
22#define PDATABASE_MAX_INT_PARAM 150
23#define PDATABASE_MAX_TOBJ_PARAM 10
25#define PDATABASE_MAX_LINES 1000
110 using TObject::GetName;
111 const char*
GetName(Int_t key);
114 Bool_t
GetParamDouble(Int_t key,
const char* paramname, Double_t** result);
115 Bool_t
GetParamString(Int_t key,
const char* paramname,
const char** result);
116 Bool_t
GetParamInt(Int_t key,
const char* paramname, Int_t** result, Int_t length = -1);
117 Bool_t
GetParamTObj(Int_t key,
const char* paramname, TObject** result);
120 Bool_t
GetParamInt(Int_t key, Int_t pkey, Int_t** result);
121 Bool_t
GetParamString(Int_t key, Int_t pkey,
const char** result);
123 Bool_t
GetParamTObj(Int_t key, Int_t pkey, TObject** result);
130 if (b && p) *result = *p;
137 Bool_t
GetParamInt(
const char* name,
const char* paramname, Int_t** result)
141 Bool_t
GetParamDouble(
const char* name,
const char* paramname, Double_t** result)
145 Bool_t
GetParamString(
const char* name,
const char* paramname,
const char** result)
149 Bool_t
GetParamTObj(
const char* name,
const char* paramname, TObject** result)
155 Bool_t
GetParamInt(
const char* paramname1, Int_t value1,
const char* paramname2, Int_t** result)
159 Bool_t
GetParamDouble(
const char* paramname1, Int_t value1,
const char* paramname2, Double_t** result)
163 Bool_t
GetParamString(
const char* paramname1, Int_t value1,
const char* paramname2,
const char** result)
167 Bool_t
GetParamTObj(
const char* paramname1, Int_t value1,
const char* paramname2, TObject** result)
173 Bool_t
GetParamInt(Int_t pkey1, Int_t value1, Int_t pkey2, Int_t** result)
182 Bool_t
GetParamString(Int_t pkey1, Int_t value1, Int_t pkey2,
const char** result)
186 Bool_t
GetParamTObj(Int_t pkey1, Int_t value1, Int_t pkey2, TObject** result)
192 Bool_t
SetParamDouble(Int_t key,
const char* paramname, Double_t* result);
193 Bool_t
SetParamString(Int_t key,
const char* paramname,
char* result);
194 Bool_t
SetParamInt(Int_t key,
const char* paramname, Int_t* result);
195 Bool_t
SetParamTObj(Int_t key,
const char* paramname, TObject* result);
198 Bool_t
SetParamTObj(Int_t key, Int_t pp, TObject* result);
203 if (key < 0)
return kFALSE;
206 Bool_t
SetParamInt(
const char* name,
const char* paramname, Int_t result)
209 if (key < 0)
return kFALSE;
210 return SetParamInt(key, paramname,
new Int_t(result));
215 if (key < 0)
return kFALSE;
218 Bool_t
SetParamTObj(
const char* name,
const char* paramname, TObject* result)
221 if (key < 0)
return kFALSE;
226 Bool_t
AddEntry(Int_t key,
const char* name);
229 Int_t
GetEntryInt(
const char* paramname, Int_t value);
233 Int_t
AddListEntry(
const char* name,
const char* count,
const char* link,
const char* newname);
234 Bool_t
MakeListIterator(Int_t key,
const char* count,
const char* link, Int_t* listkey);
235 Bool_t
MakeListIterator(Int_t key, Int_t count, Int_t link, Int_t* listkey);
237 Bool_t
ListEntries(Int_t key = -1, Int_t option = 0,
const char* pattern =
nullptr);
239 void Print(
const Option_t* delme)
const;
#define PDATABASE_MAX_INT_PARAM
#define PDATABASE_MAX_TOBJ_PARAM
#define PDATABASE_MAX_LINES
PDataBase * makeDataBase()
#define PDATABASE_MAX_STRING_PARAM
#define PDATABASE_MAX_DOUBLE_PARAM
const char * param_double_descr[PDATABASE_MAX_DOUBLE_PARAM]
Bool_t SetParamTObj(Int_t key, const char *paramname, TObject *result)
Bool_t SetParamInt(const char *name, const char *paramname, Int_t result)
Bool_t GetParamString(const char *name, const char *paramname, const char **result)
Int_t MakeParamDouble(const char *paramname, const char *descr)
void GetFastParamDouble(const char *paramname, Int_t *pkey)
Bool_t GetParamDouble(const char *name, const char *paramname, Double_t **result)
Bool_t SetParamTObj(const char *name, const char *paramname, TObject *result)
TObject * tobjs[PDATABASE_MAX_LINES][PDATABASE_MAX_TOBJ_PARAM]
Bool_t GetParamTObj(Int_t pkey1, Int_t value1, Int_t pkey2, TObject **result)
Bool_t AddEntry(Int_t key, const char *name)
Int_t MakeParamTObj(const char *paramname, const char *descr)
Bool_t GetParamTObj(const char *paramname1, Int_t value1, const char *paramname2, TObject **result)
Int_t * param_int_key[PDATABASE_MAX_INT_PARAM]
void Print(const Option_t *delme) const
Double_t * doubles[PDATABASE_MAX_LINES][PDATABASE_MAX_DOUBLE_PARAM]
Int_t GetParamDouble(const char *paramname)
Int_t GetParamString(const char *paramname)
Int_t GetParamTObj(const char *paramname)
Bool_t SetParamString(const char *name, const char *paramname, char *result)
Int_t MakeParamInt(const char *paramname, const char *descr)
TString GetDescription(const char *paramname)
const char * param_string_descr[PDATABASE_MAX_STRING_PARAM]
const char * param_tobj_descr[PDATABASE_MAX_INT_PARAM]
const char * param_string_name[PDATABASE_MAX_STRING_PARAM]
Bool_t GetParamInt(Int_t key, Int_t pkey, Int_t *result)
void GetFastParamInt(const char *paramname, Int_t *pkey)
Bool_t SetParamDouble(Int_t key, const char *paramname, Double_t *result)
Bool_t GetParamInt(const char *name, const char *paramname, Int_t **result)
Int_t MakeParamString(const char *paramname, const char *descr)
const char * param_int_descr[PDATABASE_MAX_INT_PARAM]
Bool_t ListEntries(Int_t key=-1, Int_t option=0, const char *pattern=nullptr)
Bool_t GetParamString(const char *paramname1, Int_t value1, const char *paramname2, const char **result)
Int_t GetEntry(const char *name)
const char * param_tobj_name[PDATABASE_MAX_INT_PARAM]
const char * strings[PDATABASE_MAX_LINES][PDATABASE_MAX_STRING_PARAM]
void SetFastKey(Int_t pkey, Int_t maxkey)
Int_t AddListEntry(const char *name, const char *count, const char *link, const char *newname)
Int_t param_int_key_max[PDATABASE_MAX_INT_PARAM]
Int_t param_double_pointer
Bool_t GetParamString(Int_t pkey1, Int_t value1, Int_t pkey2, const char **result)
Int_t * ints[PDATABASE_MAX_LINES][PDATABASE_MAX_INT_PARAM]
Bool_t GetParamDouble(const char *paramname1, Int_t value1, const char *paramname2, Double_t **result)
void GetFastParamString(const char *paramname, Int_t *pkey)
Bool_t SetParamDouble(const char *name, const char *paramname, Double_t result)
const char * GetName(Int_t key)
Bool_t CheckEntry(Int_t key)
Bool_t MakeListIterator(Int_t key, const char *count, const char *link, Int_t *listkey)
Int_t ConvertParamKey(const char *&newparamname, Int_t key)
Bool_t GetParamInt(const char *paramname1, Int_t value1, const char *paramname2, Int_t **result)
const char * param_int_name[PDATABASE_MAX_INT_PARAM]
Bool_t GetParamTObj(const char *name, const char *paramname, TObject **result)
Bool_t SetParamString(Int_t key, const char *paramname, char *result)
Int_t GetEntryInt(const char *paramname, Int_t value)
const char * param_double_name[PDATABASE_MAX_DOUBLE_PARAM]
Int_t GetParamInt(const char *paramname, Int_t length=-1)
void GetFastParamTObj(const char *paramname, Int_t *pkey)
Bool_t SetParamInt(Int_t key, const char *paramname, Int_t *result)
Int_t param_string_pointer
Bool_t GetParamInt(Int_t pkey1, Int_t value1, Int_t pkey2, Int_t **result)
Bool_t GetParamDouble(Int_t pkey1, Int_t value1, Int_t pkey2, Double_t **result)