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 bool UpdateEventPath(struct eventStruct event,const char *newPath);
26 void RemoveEvent(struct eventStruct event);
27 void RemoveEventsWithPath(std::string path);
28 std::string GetFilePath(struct eventStruct event);
29 struct eventStruct GetOldestEvent();
30 std::vector<serverListStruct> GetList(struct listRequestStruct listStruct);
32 AliESDEvent* GetEvent(struct eventStruct event);
33 AliESDEvent* GetNextEvent(struct eventStruct event);
34 AliESDEvent* GetLastEvent();
35 AliESDEvent* GetPrevEvent(struct eventStruct event);
36 AliESDEvent* GetFirstEvent();
40 std::string fDatabase;
42 std::string fPassword;
46 std::string fStoragePath;
48 AliStorageDatabase(const AliStorageDatabase&);
49 AliStorageDatabase& operator=(const AliStorageDatabase&);