1 #ifndef AliStorageDatabase_H
2 #define AliStorageDatabase_H
4 #include "AliStorageTypes.h"
5 #include "AliESDEvent.h"
10 #include <TSQLServer.h>
12 class AliStorageDatabase
16 ~AliStorageDatabase();
18 void InsertEvent(int runNumber,
22 char *filePath); //more parameters of the event can be added to this method
24 bool MarkEvent(struct eventStruct event);
25 void RemoveEvent(struct eventStruct event);
26 std::string GetFilePath(struct eventStruct event);
27 struct eventStruct GetOldestEvent();
28 std::vector<serverListStruct> GetList(struct listRequestStruct listStruct);
30 AliESDEvent* GetEvent(struct eventStruct event);
31 AliESDEvent* GetNextEvent(struct eventStruct event);
32 AliESDEvent* GetLastEvent();
36 std::string fDatabase;
38 std::string fPassword;
42 std::string fStoragePath;
44 AliStorageDatabase(const AliStorageDatabase&);
45 AliStorageDatabase& operator=(const AliStorageDatabase&);