KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDBTape.h
Go to the documentation of this file.
1 /***************************************************************************
2 $Id: KVDBTape.h,v 1.13 2006/10/19 14:32:43 franklan Exp $
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  ***************************************************************************/
10 #ifndef KV_DB_TAPE_H
11 #define KV_DB_TAPE_H
12 
13 #include "KVDBRecord.h"
14 #include "KVDBKey.h"
15 
16 class KVDBRun;
17 
24 class KVDBTape: public KVDBRecord {
25 
26 public:
27  KVDBTape();
28  KVDBTape(Int_t tape_number);
29  virtual ~ KVDBTape();
30 
31  virtual KVRList* GetRuns()
32  {
33  if (GetKey("Runs")) {
34  return GetKey("Runs")->GetLinks();
35  }
36  return 0;
37  }
38  void AddRun(KVDBRun* run);
39 
40  ClassDef(KVDBTape, 3) // Class describing a DLT tape
41 };
42 
43 #endif
int Int_t
#define ClassDef(name, id)
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
Definition: KVDBKey.h:64
Record folder for the database.
Definition: KVDBRecord.h:42
virtual KVDBKey * GetKey(const Char_t *key) const
Definition: KVDBRecord.cpp:290
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
Database entry describing a data storage tape used to store raw data.
Definition: KVDBTape.h:24
void AddRun(KVDBRun *run)
add run to list of runs stored on this tape
Definition: KVDBTape.cpp:52
virtual KVRList * GetRuns()
Definition: KVDBTape.h:31
virtual ~ KVDBTape()
KVDBTape()
Definition: KVDBTape.cpp:19
Wrapper for TRefArray adding some functionality.
Definition: KVRList.h:36