6 //* This file is property of and copyright by the ALICE HLT Project *
7 //* ALICE Experiment at CERN, All rights reserved. *
8 //* See cxx source for full Copyright notice */
10 /// @file AliHLTMisc.h
11 /// @author Matthias Richter
13 /// @brief Definition of various glue functions implemented in dynamically
21 class AliHLTMisc : public TObject {
27 static T* LoadInstance(const T* dummy, const char* classname, const char* library);
29 static AliHLTMisc& Instance();
31 virtual int InitCDB(const char* cdbpath);
33 virtual int SetCDBRunNo(int runNo);
35 virtual AliCDBEntry* LoadOCDBEntry(const char* path, int runNo=-1, int version = -1, int subVersion = -1);
37 virtual TObject* ExtractObject(AliCDBEntry* entry);
40 static AliHLTMisc* fgInstance;
42 ClassDef(AliHLTMisc, 0)
45 #define ALIHLTMISC_LIBRARY "libHLTrec.so"
46 #define ALIHLTMISC_INIT_CDB "AliHLTMiscInitCDB"
47 #define ALIHLTMISC_SET_CDB_RUNNO "AliHLTMiscSetCDBRunNo"
54 * Init the CDB access for the running instance.
55 * The method is used from the C wrapper interface utilized by the on-line
56 * framework. The path of the (H)CDB is set to the specified path.<br>
57 * When running from AliRoot, the CDB path is set in the startup of the
59 * If cdbpath is nil or empty and the CDB is not already initialized, the
60 * CDB storage is set to local://$ALICE_ROOT/OCDB and the run no to 0.
61 * @param cdbpath path to the CDB
62 * @return neg. error code if failed
63 * @note function implemented in libHLTrec
65 int AliHLTMiscInitCDB(const char* cdbpath);
66 typedef int (*AliHLTMiscInitCDB_t)(const char* cdbpath);
69 * Init the Run no for the CDB access.
70 * @param runNo the run no
71 * @return neg. error code if failed
72 * @note function implemented in libHLTrec
74 int AliHLTMiscSetCDBRunNo(int runNo);
75 typedef int (*AliHLTMiscSetCDBRunNo_t)(int runNo);